1
0
Fork 0

added check if the digger is a nullptr (#4981)

Co-authored-by: 12xx12 <12xx12100@gmail.com>
This commit is contained in:
12xx12 2020-10-09 22:12:19 +02:00 committed by GitHub
parent d3255b3014
commit 6fd35be67a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -85,6 +85,7 @@ private:
const cEntity * a_Digger
) const override
{
UNUSED(a_Digger);
// If there's a solid block or a liquid underneath, convert to water, rather than air
if (a_BlockPos.y <= 0)
{

View File

@ -61,6 +61,10 @@ private:
const cEntity * a_Digger
) const override
{
if (a_Digger == nullptr)
{
return;
}
if (!a_Digger->IsPlayer())
{
return;

View File

@ -71,6 +71,10 @@ private:
const cEntity * a_Digger
) const override
{
if (a_Digger == nullptr)
{
return;
}
if (!a_Digger->IsPlayer())
{
return;