summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2014-02-27 22:15:47 +0100
committerAlexander Harkness <bearbin@gmail.com>2014-02-27 22:15:47 +0100
commit03624f33a7cd700493aa48ff9451ae7cd0a4e317 (patch)
treed90d89d958521f42f8f728d3d7535a5e44af5450 /src/Mobs
parentAdded a "nooutbuf" cmdline param. (diff)
parentadded mooshroom to cow conversion (diff)
downloadcuberite-03624f33a7cd700493aa48ff9451ae7cd0a4e317.tar
cuberite-03624f33a7cd700493aa48ff9451ae7cd0a4e317.tar.gz
cuberite-03624f33a7cd700493aa48ff9451ae7cd0a4e317.tar.bz2
cuberite-03624f33a7cd700493aa48ff9451ae7cd0a4e317.tar.lz
cuberite-03624f33a7cd700493aa48ff9451ae7cd0a4e317.tar.xz
cuberite-03624f33a7cd700493aa48ff9451ae7cd0a4e317.tar.zst
cuberite-03624f33a7cd700493aa48ff9451ae7cd0a4e317.zip
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/Mooshroom.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Mobs/Mooshroom.cpp b/src/Mobs/Mooshroom.cpp
index 8e4c52ae6..81bd3e3b4 100644
--- a/src/Mobs/Mooshroom.cpp
+++ b/src/Mobs/Mooshroom.cpp
@@ -67,6 +67,8 @@ void cMooshroom::OnRightClicked(cPlayer & a_Player)
cItems Drops;
Drops.push_back(cItem(E_BLOCK_RED_MUSHROOM, 5, 0));
m_World->SpawnItemPickups(Drops, GetPosX(), GetPosY(), GetPosZ(), 10);
+ m_World->SpawnMob(GetPosX(), GetPosY(), GetPosZ(), cMonster::mtCow);
+ Destroy();
} break;
}
}