Skip to content

Commit

Permalink
fix crash when using modified non-default space suit, release patch
Browse files Browse the repository at this point in the history
  • Loading branch information
screret committed May 4, 2024
1 parent e6583f7 commit 379c34f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
### ADDITIONS:

### FIXES:
- fixed mod not working with latest GTM
- fixed bromine process
- fixed passengers not teleporting when you fall off a space station, locking the client in unknown state
- fixed space crashing when using upgraded non-spacesuit armor

### CHANGES:
- updated ja-jp translation
### CHANGES:
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx4G -Xss4M

mod_id=gcyr
mod_name=Gregicality Rocketry
mod_version=0.1.7
mod_version=0.1.7-a
maven_group=argent_matter

loom.platform=forge
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static void temperatureTick(LivingEntity entity, ServerLevel level) {

UniformInt temperatureResistance = TEMP_RANGE;
if (SpaceSuitArmorItem.hasFullSet(entity)) {
temperatureResistance = ((SpaceSuitArmorItem) entity.getArmorSlots().iterator().next().getItem()).getTemperatureThreshold();
temperatureResistance = SpaceSuitArmorItem.getTemperatureThreshold();
}

if (temperature > temperatureResistance.getMaxValue() && !entity.fireImmune() && !entity.hasEffect(MobEffects.FIRE_RESISTANCE) && !EntityTemperatureSystem.armourIsHeatResistant(entity)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public static void consumeSpaceSuitOxygen(LivingEntity entity, int amount) {

}

public UniformInt getTemperatureThreshold() {
public static UniformInt getTemperatureThreshold() {
return UniformInt.of(60, 363);
}

Expand Down

0 comments on commit 379c34f

Please sign in to comment.