From 6613a21462b285a929134bf819cb8c44f0d1994b Mon Sep 17 00:00:00 2001 From: Someone Date: Fri, 3 May 2019 19:40:11 +0200 Subject: [PATCH] "player" -> "character" fix for 0.17.36 --- changelog.txt | 7 +++++++ control.lua | 4 ++-- info.json | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index a8c48a7..5a1db01 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,10 @@ +--------------------------------------------------------------------------------------------------- +Version: 0.17.3 +Date: 2019-05-03 + + Changed: + - "player" -> "character" fix for 0.17.36 + --------------------------------------------------------------------------------------------------- Version: 0.17.2 Date: 2019-03-10 diff --git a/control.lua b/control.lua index b50bd79..7357556 100644 --- a/control.lua +++ b/control.lua @@ -92,8 +92,8 @@ function tickBombs(event) end function createWater(x, y, size, surface) - -- Setting tiles to water where players are standing deletes the player and sets them to god mode. - local players = surface.find_entities_filtered({area = {{x - size - 1, y - size - 1}, {x + size + 1, y + size + 1}}, type="player"}) + -- Setting tiles to water where player characters are standing deletes the character and sets them to god mode. We dont want that. + local players = surface.find_entities_filtered({area = {{x - size - 1, y - size - 1}, {x + size + 1, y + size + 1}}, type="character"}) if #players ~= 0 then return end diff --git a/info.json b/info.json index f4c9bd0..3190c2e 100644 --- a/info.json +++ b/info.json @@ -1,10 +1,10 @@ { "name": "Waterbomb", - "version": "0.17.2", + "version": "0.17.3", "title": "Waterbomb", "author": "someone1337", "homepage": "https://git.somenet.org/pub/jan/factorio_Waterbomb.git", "description": "Use explosions/bombs to create water. (Originally 'Landfill' by Rseding91)", - "dependencies": ["base"], + "dependencies": ["base>=0.17.36"], "factorio_version": "0.17" } -- 2.43.0