summaryrefslogtreecommitdiffstats
path: root/source/Minecart.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Minecart.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/Minecart.cpp b/source/Minecart.cpp
index bae56d582..cffa1b6e0 100644
--- a/source/Minecart.cpp
+++ b/source/Minecart.cpp
@@ -22,10 +22,14 @@ cMinecart::cMinecart(ePayload a_Payload, double a_X, double a_Y, double a_Z) :
-void cMinecart::Initialize(cWorld * a_World)
+bool cMinecart::Initialize(cWorld * a_World)
{
- super::Initialize(a_World);
- a_World->BroadcastSpawnEntity(*this);
+ if (super::Initialize(a_World))
+ {
+ a_World->BroadcastSpawnEntity(*this);
+ return true;
+ }
+ return false;
}