mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-11 01:29:36 +01:00
[mobs_mc] Remove goto
from enderman.lua
This commit is contained in:
parent
a76fe2b487
commit
40c733c913
1 changed files with 19 additions and 20 deletions
|
@ -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 a new issue