Code: Select all
script.on_event(defines.events.on_pre_player_crafted_item, function(event)
local player = game.players[event.player_index]
if event.recipe then
player.cancel_crafting()
end
end)
Code: Select all
script.on_event(defines.events.on_pre_player_crafted_item, function(event)
local player = game.players[event.player_index]
if event.recipe then
player.cancel_crafting()
end
end)
16586.416 Time travel logging:
What this?Bilka wrote:16586.416 Time travel logging: