Fix mobs egg problem on server
This commit is contained in:
parent
5adbb927ed
commit
596e5aecac
Binary file not shown.
Before Width: | Height: | Size: 242 B |
Binary file not shown.
Before Width: | Height: | Size: 256 B |
Binary file not shown.
Before Width: | Height: | Size: 241 B |
Binary file not shown.
Before Width: | Height: | Size: 241 B |
@ -3857,8 +3857,8 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative)
|
|||||||
ent.tamed = true
|
ent.tamed = true
|
||||||
end
|
end
|
||||||
|
|
||||||
-- if not in creative then take item
|
-- if not in creative then take item and minimal protection against creating a large number of mobs on the server
|
||||||
if not mobs.is_creative(placer:get_player_name()) then
|
if not mobs.is_creative(placer:get_player_name()) or not minetest.is_singleplayer() then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user