forked from VoxeLibre/VoxeLibre
[mobs_mc] Remove `goto` from enderman.lua
This commit is contained in:
parent
a76fe2b487
commit
40c733c913
|
@ -346,8 +346,7 @@ mobs:register_mob("mobs_mc:enderman", {
|
|||
--skip player if they have no data - log it
|
||||
if not player_eye_height then
|
||||
minetest.log("error", "Enderman at location: ".. dump(enderpos).." has indexed a null player!")
|
||||
goto continue
|
||||
end
|
||||
else
|
||||
|
||||
--calculate very quickly the exact location the player is looking
|
||||
--within the distance between the two "heads" (player and enderman)
|
||||
|
@ -368,7 +367,7 @@ mobs:register_mob("mobs_mc:enderman", {
|
|||
end
|
||||
end
|
||||
|
||||
::continue:: -- this is a sweep over statement, this can be used to continue even when errors occurred
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue