summaryrefslogtreecommitdiffstats
path: root/source/Minecart.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Minecart.cpp11
1 files changed, 11 insertions, 0 deletions
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