added check if the digger is a nullptr (#4981)
Co-authored-by: 12xx12 <12xx12100@gmail.com>
This commit is contained in:
parent
d3255b3014
commit
6fd35be67a
@ -85,6 +85,7 @@ private:
|
|||||||
const cEntity * a_Digger
|
const cEntity * a_Digger
|
||||||
) const override
|
) const override
|
||||||
{
|
{
|
||||||
|
UNUSED(a_Digger);
|
||||||
// If there's a solid block or a liquid underneath, convert to water, rather than air
|
// If there's a solid block or a liquid underneath, convert to water, rather than air
|
||||||
if (a_BlockPos.y <= 0)
|
if (a_BlockPos.y <= 0)
|
||||||
{
|
{
|
||||||
|
@ -61,6 +61,10 @@ private:
|
|||||||
const cEntity * a_Digger
|
const cEntity * a_Digger
|
||||||
) const override
|
) const override
|
||||||
{
|
{
|
||||||
|
if (a_Digger == nullptr)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!a_Digger->IsPlayer())
|
if (!a_Digger->IsPlayer())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -71,6 +71,10 @@ private:
|
|||||||
const cEntity * a_Digger
|
const cEntity * a_Digger
|
||||||
) const override
|
) const override
|
||||||
{
|
{
|
||||||
|
if (a_Digger == nullptr)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!a_Digger->IsPlayer())
|
if (!a_Digger->IsPlayer())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user