Skip to content

Commit

Permalink
Restructure Entity.updateWaterState overwrite to allow mod mixins to …
Browse files Browse the repository at this point in the history
…work (#30)
  • Loading branch information
embeddedt authored Apr 2, 2024
1 parent 70e75d6 commit 50c5c33
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,7 @@ protected boolean updateWaterState() {
this.radium$isInModdedFluid = false;
this.checkWaterState();

if (this.radium$isInModdedFluid) {
this.handleModdedFluidBehaviors();
}

return this.isInFluidType();
}

private void handleModdedFluidBehaviors() {
if (!(this.getVehicle() instanceof BoatEntity)) {
if (this.radium$isInModdedFluid && !(this.getVehicle() instanceof BoatEntity)) {
float fallDistanceModifier = Float.MAX_VALUE;
boolean canExtinguish = false;

Expand All @@ -154,6 +146,8 @@ private void handleModdedFluidBehaviors() {
this.extinguish();
}
}

return this.isInFluidType();
}

/**
Expand Down

0 comments on commit 50c5c33

Please sign in to comment.