1
0
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:
Valansch 2018-06-05 02:06:26 +02:00
parent e6a2ef8697
commit 8905388565

View File

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