Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrix-Shen committed Aug 21, 2022
1 parent 8145f7e commit a83a3b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import net.minecraft.world.level.Level;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
import top.hendrixshen.magiclib.dependency.annotation.Dependencies;
import top.hendrixshen.magiclib.dependency.annotation.Dependency;
import top.hendrixshen.tweakmyclient.config.Configs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.LevelRenderer;
import net.minecraft.core.BlockPos;
import net.minecraft.network.chat.contents.LiteralContents;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,17 @@
import top.hendrixshen.tweakmyclient.fakeInterface.IFishingHookEntity;

@Mixin(FishingHook.class)
public class MixinFishingHook implements IFishingHookEntity {
public abstract class MixinFishingHook implements IFishingHookEntity {
//#else
//$$ @Mixin(Minecraft.class)
//$$ public class MixinFishingHook {
//#endif
//#if MC >= 11600
@Override
public boolean checkOpenWaterAround(BlockPos pos) {
return calculateOpenWater(pos);
return this.calculateOpenWater(pos);
}

@Shadow
private boolean calculateOpenWater(BlockPos pos) {
return false;
}
@Shadow protected abstract boolean calculateOpenWater(BlockPos blockPos);
//#endif
}

0 comments on commit a83a3b2

Please sign in to comment.