mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
Fixed potential issue with reactors blowing up on antigrief surface
This commit is contained in:
parent
e6a2ef8697
commit
8905388565
@ -145,7 +145,7 @@ local function entity_build(event)
|
||||
if not event.created_entity.valid then
|
||||
return
|
||||
end
|
||||
if event.created_entity.name == 'nuclear-reactor' then
|
||||
if event.created_entity.name == 'nuclear-reactor' and event.created_entity.surface.name ~= "antigrief" then
|
||||
table.insert(global.reactors, event.created_entity)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user