diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-12 18:04:41 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-12 18:04:41 +0100 |
commit | f11427e8cd5506204958eec68a8ac2a9152df108 (patch) | |
tree | cce60b10962d911daf4b70e96c21701b975b1eb8 /src/World.cpp | |
parent | EmptyMinecarts should be able to get a block inside of them. (diff) | |
download | cuberite-f11427e8cd5506204958eec68a8ac2a9152df108.tar cuberite-f11427e8cd5506204958eec68a8ac2a9152df108.tar.gz cuberite-f11427e8cd5506204958eec68a8ac2a9152df108.tar.bz2 cuberite-f11427e8cd5506204958eec68a8ac2a9152df108.tar.lz cuberite-f11427e8cd5506204958eec68a8ac2a9152df108.tar.xz cuberite-f11427e8cd5506204958eec68a8ac2a9152df108.tar.zst cuberite-f11427e8cd5506204958eec68a8ac2a9152df108.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/World.cpp b/src/World.cpp index d7edbe3f8..d63a16262 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -1648,12 +1648,12 @@ int cWorld::SpawnExperienceOrb(double a_X, double a_Y, double a_Z, int a_Reward) -int cWorld::SpawnMinecart(double a_X, double a_Y, double a_Z, int a_MinecartType, cItem a_Content, int a_BlockHeight) +int cWorld::SpawnMinecart(double a_X, double a_Y, double a_Z, int a_MinecartType, const cItem & a_Content, int a_BlockHeight) { cMinecart * Minecart; switch (a_MinecartType) { - case E_ITEM_MINECART: Minecart = new cEmptyMinecart (a_X, a_Y, a_Z, a_Content, a_BlockHeight); break; + case E_ITEM_MINECART: Minecart = new cRideableMinecart (a_X, a_Y, a_Z, a_Content, a_BlockHeight); break; case E_ITEM_CHEST_MINECART: Minecart = new cMinecartWithChest (a_X, a_Y, a_Z); break; case E_ITEM_FURNACE_MINECART: Minecart = new cMinecartWithFurnace (a_X, a_Y, a_Z); break; case E_ITEM_MINECART_WITH_TNT: Minecart = new cMinecartWithTNT (a_X, a_Y, a_Z); break; |