summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemMinecart.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Items/ItemMinecart.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Items/ItemMinecart.h b/src/Items/ItemMinecart.h
index 2cf42507b..6344c0178 100644
--- a/src/Items/ItemMinecart.h
+++ b/src/Items/ItemMinecart.h
@@ -18,15 +18,15 @@ class cItemMinecartHandler :
public cItemHandler
{
typedef cItemHandler super;
-
+
public:
cItemMinecartHandler(int a_ItemType) :
super(a_ItemType)
{
}
-
-
-
+
+
+
virtual bool OnItemUse(
cWorld * a_World, cPlayer * a_Player, cBlockPluginInterface & a_PluginInterface, const cItem & a_Item,
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace
@@ -36,7 +36,7 @@ public:
{
return false;
}
-
+
// Check that there's rail in there:
BLOCKTYPE Block = a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ);
switch (Block)
@@ -55,7 +55,7 @@ public:
return false;
}
}
-
+
double x = static_cast<double>(a_BlockX) + 0.5;
double y = static_cast<double>(a_BlockY) + 0.5;
double z = static_cast<double>(a_BlockZ) + 0.5;