summaryrefslogtreecommitdiffstats
path: root/source/cFurnaceEntity.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-15 15:22:44 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-15 15:22:44 +0100
commit1aebcea095e92572a39cb6555cba8517234b156c (patch)
treebbef44ce857aa49b2171ef43bedc2e802fbd5dd8 /source/cFurnaceEntity.cpp
parentCan now pass any argument to cWorld:ForEachPlayer in Lua! But I'm not even using it.. lol (diff)
downloadcuberite-1aebcea095e92572a39cb6555cba8517234b156c.tar
cuberite-1aebcea095e92572a39cb6555cba8517234b156c.tar.gz
cuberite-1aebcea095e92572a39cb6555cba8517234b156c.tar.bz2
cuberite-1aebcea095e92572a39cb6555cba8517234b156c.tar.lz
cuberite-1aebcea095e92572a39cb6555cba8517234b156c.tar.xz
cuberite-1aebcea095e92572a39cb6555cba8517234b156c.tar.zst
cuberite-1aebcea095e92572a39cb6555cba8517234b156c.zip
Diffstat (limited to 'source/cFurnaceEntity.cpp')
-rw-r--r--source/cFurnaceEntity.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/cFurnaceEntity.cpp b/source/cFurnaceEntity.cpp
index d5bd192c5..4485d2c01 100644
--- a/source/cFurnaceEntity.cpp
+++ b/source/cFurnaceEntity.cpp
@@ -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() );
}
}
}