Skip to content

Commit

Permalink
a (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-s168 authored Sep 28, 2024
1 parent ca9fc89 commit a81efdf
Showing 1 changed file with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,18 @@ object Weather2Compat {
applyForcePlusMotion()

mgr.getStormsAround(pos, stormRange).forEach {
if (it is StormObject) {
runCatching { // prevent Cannot read field "listLayers" because "this.tornadoFunnelSimple" is null at weather2.weathersystem.storm.StormObject.spinObject(StormObject.java:2503)
forcePlusMotion = it.spinObject(
pos,
forcePlusMotion,
false,
stormDampen,
stormDampen,
false,
0.0f,
)
if (it is StormObject && it.tornadoFunnelSimple != null) {
forcePlusMotion = it.spinObject(
pos,
forcePlusMotion,
false,
stormDampen,
stormDampen,
true,
0.0f,
)

applyForcePlusMotion()
}
applyForcePlusMotion()
}
}
}
Expand Down

0 comments on commit a81efdf

Please sign in to comment.