]> git.lizzy.rs Git - skycraft.git/blobdiff - src/onload/mob_spawner.lua
Fixed Spawner Duplication bug
[skycraft.git] / src / onload / mob_spawner.lua
index 10e39e03f8dbd4e07383249b17b2f08b987c9c2f..aa2b6bc740ce1026b699bf2f5f397de2d6e6ff1a 100644 (file)
@@ -9,6 +9,7 @@ function spawner_def.on_place(itemstack, placer, pointed_thing)
        old_on_place(itemstack, placer, pointed_thing)
        privs.maphack = nil
        minetest.set_player_privs(name, privs)
+       return player:get_wielded_item()
 end
 
 spawner_def.drop = "mcl_mobspawners:spawner"