Door handler: Removed needless check.
The Y coord has already been checked above.
This commit is contained in:
parent
b165ab6363
commit
1bcc4abd68
@ -40,7 +40,7 @@ public:
|
||||
}
|
||||
|
||||
// The door needs a compatible block below it:
|
||||
if ((a_BlockY > 0) && !cBlockDoorHandler::CanBeOn(a_World.GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ)))
|
||||
if (!cBlockDoorHandler::CanBeOn(a_World.GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ)))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user