Skip to content

Commit

Permalink
fix(patch): Remove unnecessary lava patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ChampionAsh5357 committed Nov 2, 2024
1 parent 5a82cc6 commit d2041dd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions patches/net/minecraft/world/entity/LivingEntity.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -512,15 +512,6 @@
}

protected float getWaterSlowDown() {
@@ -2184,7 +_,7 @@
public void travel(Vec3 p_21280_) {
if (this.isControlledByLocalInstance()) {
FluidState fluidstate = this.level().getFluidState(this.blockPosition());
- if ((this.isInWater() || this.isInLava()) && this.isAffectedByFluids() && !this.canStandOnFluid(fluidstate)) {
+ if ((this.isInWater() || (this.isInFluidType(fluidstate) && fluidstate.getFluidType() != net.neoforged.neoforge.common.NeoForgeMod.LAVA_TYPE.value())) && this.isAffectedByFluids() && !this.canStandOnFluid(fluidstate)) {
this.travelInFluid(p_21280_);
} else if (this.isFallFlying()) {
this.travelFallFlying();
@@ -2196,7 +_,7 @@

private void travelInAir(Vec3 p_362457_) {
Expand Down

0 comments on commit d2041dd

Please sign in to comment.