Add files via upload

This commit is contained in:
loosewheel
2021-11-14 01:52:55 +10:00
committed by GitHub
parent 7b6b0176a7
commit 0d27b384a2
4 changed files with 8 additions and 4 deletions

View File

@@ -71,8 +71,8 @@ local function try_spawn (pos, node, item)
local spawn_pos = dispense_pos (pos, node)
if item_def and item_def.groups and item_def.groups.spawn_egg then
if mob:sub (mob:len () - 4) == "_set" then
mob = mob:sub (1, mob:len () - 5)
if mob:sub (mob:len () - 3) == "_set" then
mob = mob:sub (1, mob:len () - 4)
if minetest.registered_entities[mob] then
local data = item:get_metadata ()