|
| 1 | +//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"! |
| 2 | + |
| 3 | +//Decompiled by Procyon! |
| 4 | + |
| 5 | +package com.veteran.hack.mixin.client; |
| 6 | + |
| 7 | +import org.spongepowered.asm.mixin.*; |
| 8 | +import net.minecraft.block.*; |
| 9 | +import net.minecraft.world.*; |
| 10 | +import net.minecraft.entity.*; |
| 11 | +import net.minecraft.util.math.*; |
| 12 | +import org.spongepowered.asm.mixin.injection.callback.*; |
| 13 | +import com.veteran.hack.module.*; |
| 14 | +import org.spongepowered.asm.mixin.injection.*; |
| 15 | +import net.minecraft.block.state.*; |
| 16 | +import net.minecraft.block.properties.*; |
| 17 | + |
| 18 | +@Mixin({ BlockLiquid.class }) |
| 19 | +public class MixinBlockLiquid |
| 20 | +{ |
| 21 | + @Inject(method = { "modifyAcceleration" }, at = { @At("HEAD") }, cancellable = true) |
| 22 | + public void modifyAcceleration(final World worldIn, final BlockPos pos, final Entity entityIn, final Vec3d motion, final CallbackInfoReturnable returnable) { |
| 23 | + if (ModuleManager.isModuleEnabled("Velocity")) { |
| 24 | + returnable.setReturnValue((Object)motion); |
| 25 | + returnable.cancel(); |
| 26 | + } |
| 27 | + } |
| 28 | + |
| 29 | + @Inject(method = { "canCollideCheck" }, at = { @At("HEAD") }, cancellable = true) |
| 30 | + public void canCollideCheck(final IBlockState blockState, final boolean b, final CallbackInfoReturnable<Boolean> callbackInfoReturnable) { |
| 31 | + callbackInfoReturnable.setReturnValue((Object)(ModuleManager.isModuleEnabled("LiquidInteract") || (b && (int)blockState.getValue((IProperty)BlockLiquid.LEVEL) == 0))); |
| 32 | + } |
| 33 | +} |
0 commit comments