Skip to content

Commit

Permalink
fixed a stupid crash
Browse files Browse the repository at this point in the history
  • Loading branch information
notquitenull committed Nov 7, 2023
1 parent 51e0292 commit b347c12
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ local function deconstructive_tile_ghost(event)
local player = game.get_player(event.player_index)

local pos = {event.created_entity.position.x, event.created_entity.position.y}
local area = {{pos[1] - 0.5, pos[2] - 0.5}, {pos[1] + 0.5, pos[2] + 0.5}}
game.print(area[1][1] .. area[1][2] .. area[2][1] .. area[2][2])
local entities = surface.find_entities_filtered{position = pos}
for j = 1, #entities do
entities[j].order_deconstruction(player.force, player)
Expand Down

0 comments on commit b347c12

Please sign in to comment.