mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
Merge pull request #111 from Valansch/fix_pet_bug
Fixed pet spawn player nil reference #110
This commit is contained in:
commit
a8d032dd58
@ -248,7 +248,7 @@ function pet(player, entity_name)
|
||||
end
|
||||
if not global.player_pets then global.player_pets = {} end
|
||||
|
||||
local surface = game.player.surface
|
||||
local surface = player.surface
|
||||
|
||||
local pos = player.position
|
||||
pos.y = pos.y + 1
|
||||
|
Loading…
Reference in New Issue
Block a user