Fix mobs egg problem on server

This commit is contained in:
MoNTE48 2019-05-23 11:43:37 +02:00
parent 5adbb927ed
commit 596e5aecac
5 changed files with 2 additions and 2 deletions

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

View File

@ -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