1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-01 13:08:05 +02:00

Mtn v3 - fix coin bug

This commit is contained in:
Gerkiz 2023-05-27 17:43:18 +02:00
parent 40bd604db5
commit 3771c1ac66

View File

@ -742,10 +742,12 @@ local function on_player_mined_entity(event)
if random(1, 3) == 1 then
give_coin(player)
end
else
elseif entity.type == 'simple-entity-with-owner' then
if random(1, 6) == 1 then
give_coin(player)
end
else
give_coin(player)
end
if rpg_char.stone_path then
entity.surface.set_tiles({{name = 'stone-path', position = entity.position}}, true)