Skip to content

Commit

Permalink
Fix stutter on clicking electric poles
Browse files Browse the repository at this point in the history
Someone's base is always big enough to make me eat my words
  • Loading branch information
oorzkws committed Jul 29, 2024
1 parent 4e3cef2 commit d4616f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 1.2.40
Date: ???
Bugfixes:
- Fixed stutter on clicking electric poles
---------------------------------------------------------------------------------------------------
Version: 1.2.39
Date: 2024-7-13
Bugfixes:
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pyalternativeenergy",
"version": "1.2.39",
"version": "1.2.40",
"factorio_version": "1.1",
"title": "Pyanodons Alternative Energy",
"author": "Pyanodon, Nexela, Kingarthur, Notnotmelon, Mootykins, ShadowGlass, Archezekiel, Quintuple, Przemo",
Expand Down
6 changes: 3 additions & 3 deletions scripts/aerial.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1360,9 +1360,9 @@ Aerial.events.on_open_gui = function(event)
-- If we passed exists_and_valid, we don't need the IDE whining that entity might be nil
---@cast entity LuaEntity

-- If a player clicks for power stats, we refresh the networks
if entity.type == 'power-switch' or entity.type == 'electric-pole' then
global.aerials.refresh_networks = true
-- If a player clicks for power stats, we verify the network
if entity.type == 'electric-pole' then
verify_neighbours(entity)
return
end

Expand Down

0 comments on commit d4616f4

Please sign in to comment.