From 75937077136b9ec2eaba49c74543bdee323f68ff Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 9 Mar 2013 14:35:43 +0000 Subject: Pickups are now being saved into Anvil. Also changed cEntity rotation datatype to double git-svn-id: http://mc-server.googlecode.com/svn/trunk@1262 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Minecart.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/Minecart.cpp') diff --git a/source/Minecart.cpp b/source/Minecart.cpp index 84ca57bcd..2606e7774 100644 --- a/source/Minecart.cpp +++ b/source/Minecart.cpp @@ -115,6 +115,17 @@ cMinecartWithChest::cMinecartWithChest(double a_X, double a_Y, double a_Z) : +void cMinecartWithChest::SetItem(int a_Idx, const cItem & a_Item) +{ + ASSERT((a_Idx >= 0) && (a_Idx < ARRAYCOUNT(m_Items))); + + m_Items[a_Idx] = a_Item; +} + + + + + void cMinecartWithChest::OnRightClicked(cPlayer & a_Player) { // Show the chest UI window to the player -- cgit v1.2.3