mirror of
https://github.com/veden/Rampant.git
synced 2025-03-17 20:58:35 +02:00
Fixes crash ⚡
updated readme added preventive fix from @Frag31337
This commit is contained in:
parent
59c4202536
commit
5307304ad2
@ -1,3 +1,8 @@
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 3.3.4
|
||||
Bugfixes:
|
||||
- Fixed Rampant::on_entity_died
|
||||
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 3.3.3
|
||||
Bugfixes:
|
||||
|
@ -491,7 +491,7 @@ local function onDeath(event)
|
||||
end
|
||||
end
|
||||
|
||||
if (getCombinedDeathGeneratorRating(chunk) < Universe.retreatThreshold) and cause and cause.valid then
|
||||
if (getCombinedDeathGeneratorRating(chunk) < Universe.retreatThreshold) and cause and cause.valid and cause.get_health_ratio() ~= nil then
|
||||
retreatUnits(chunk,
|
||||
cause,
|
||||
tick,
|
||||
@ -515,7 +515,7 @@ local function onDeath(event)
|
||||
end
|
||||
end
|
||||
|
||||
if cause and cause.valid then
|
||||
if cause and cause.valid and cause.get_health_ratio() ~= nil then
|
||||
retreatUnits(chunk,
|
||||
cause,
|
||||
tick,
|
||||
|
Loading…
x
Reference in New Issue
Block a user