Skip to content

Commit

Permalink
This should use original.call
Browse files Browse the repository at this point in the history
  • Loading branch information
Roadhog360 committed Aug 7, 2024
1 parent 47e7965 commit 8169c89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void floatLava(EntityItem instance, double mx, double my, double mz) {
@WrapOperation(method = "onUpdate",
at = @At(value = "INVOKE", target = "Lnet/minecraft/world/World;getBlock(III)Lnet/minecraft/block/Block;"))
private Block noFizzBounce(World instance, int x, int y, int z, Operation<Block> original) { //Returns AIR so the check for lava is false; we do this to remove the fizzing and bouncing
return isImmuneToFire ? Blocks.air : worldObj.getBlock(x, y, z);
return isImmuneToFire ? Blocks.air : original.call(instance, x, y, z);
}

@Override
Expand Down

0 comments on commit 8169c89

Please sign in to comment.