Added dispensers (they can't dispense items yet)
Fixed crash when digging snow Moved BlockPlace hook check, so Core plugin will no longer block item usage Player chat messages are now visible in the console git-svn-id: http://mc-server.googlecode.com/svn/trunk@1081 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -34,7 +34,8 @@ public:
|
||||
char OldMetaData = a_World->GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ);
|
||||
char NewMetaData = cDoors::RotationToMetaData(a_Player->GetRotation() + 270);
|
||||
OldMetaData ^= 4; //Toggle the gate
|
||||
if((OldMetaData & 1) == (NewMetaData & 1)){
|
||||
if((OldMetaData & 1) == (NewMetaData & 1))
|
||||
{
|
||||
//Standing in front of the gate - apply new direction
|
||||
a_World->SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, (OldMetaData & 4) | (NewMetaData & 3));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user