1
0

Restored chest and furnace functionality as it was (it's basically working but joined chests show single-chest window)

git-svn-id: http://mc-server.googlecode.com/svn/trunk@263 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2012-02-15 14:22:44 +00:00
parent 5e1033c567
commit 1aebcea095
13 changed files with 194 additions and 104 deletions

View File

@@ -74,7 +74,7 @@ void cFurnaceEntity::Destroy()
void cFurnaceEntity::UsedBy( cPlayer & a_Player )
void cFurnaceEntity::UsedBy( cPlayer * a_Player )
{
LOG("Used a furnace");
@@ -88,11 +88,11 @@ void cFurnaceEntity::UsedBy( cPlayer & a_Player )
}
if( GetWindow() )
{
if( a_Player.GetWindow() != GetWindow() )
if( a_Player->GetWindow() != GetWindow() )
{
a_Player.OpenWindow( GetWindow() );
a_Player->OpenWindow( GetWindow() );
GetWindow()->SendWholeWindow( a_Player.GetClientHandle() );
GetWindow()->SendWholeWindow( a_Player->GetClientHandle() );
}
}
}