1
0
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:
Triston 2017-11-08 08:01:43 -05:00 committed by GitHub
commit a8d032dd58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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