1
0

Door handler: Removed needless check.

The Y coord has already been checked above.
This commit is contained in:
Mattes D 2015-02-21 14:23:37 +01:00
parent b165ab6363
commit 1bcc4abd68

View File

@ -40,7 +40,7 @@ public:
} }
// The door needs a compatible block below it: // 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; return false;
} }