summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2017-03-17 19:33:18 +0100
committerLukas Pioch <lukas@zgow.de>2017-03-17 19:33:18 +0100
commit043a82344f41562378651be6ecb626813b0b5ac0 (patch)
tree632b84d3cc854a725cbf45bcd1c0195e636355e8 /src
parentFixed looping when unable to bind port (#3621) (diff)
downloadcuberite-043a82344f41562378651be6ecb626813b0b5ac0.tar
cuberite-043a82344f41562378651be6ecb626813b0b5ac0.tar.gz
cuberite-043a82344f41562378651be6ecb626813b0b5ac0.tar.bz2
cuberite-043a82344f41562378651be6ecb626813b0b5ac0.tar.lz
cuberite-043a82344f41562378651be6ecb626813b0b5ac0.tar.xz
cuberite-043a82344f41562378651be6ecb626813b0b5ac0.tar.zst
cuberite-043a82344f41562378651be6ecb626813b0b5ac0.zip
Diffstat (limited to 'src')
-rw-r--r--src/Items/ItemBoat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Items/ItemBoat.h b/src/Items/ItemBoat.h
index 5f7f91b57..be1663eef 100644
--- a/src/Items/ItemBoat.h
+++ b/src/Items/ItemBoat.h
@@ -98,6 +98,12 @@ public:
cBoat * Boat = new cBoat(x + 0.5, y + 0.5, z + 0.5);
Boat->Initialize(*a_World);
+ // Remove boat from players hand
+ if (!a_Player->IsGameModeCreative())
+ {
+ a_Player->GetInventory().RemoveOneEquippedItem();
+ }
+
return true;
}
} ;