Skip to content

Commit

Permalink
NeoForge made those two fields public when reintroduce the patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
3TUSK committed Sep 2, 2024
1 parent e79c227 commit e85b99d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.

This file was deleted.

3 changes: 1 addition & 2 deletions src/main/java/org/teacon/xkdeco/util/CommonProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.teacon.xkdeco.block.XKDBlock;
import org.teacon.xkdeco.duck.XKDPlayer;
import org.teacon.xkdeco.init.MimicWallsLoader;
import org.teacon.xkdeco.mixin.forge.FenceGateBlockAccess;

import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
Expand Down Expand Up @@ -51,7 +50,7 @@ public static boolean isLadder(BlockState blockState, LevelReader world, BlockPo
}

public static SoundEvent getFenceGateSound(FenceGateBlock block, boolean open) {
return open ? ((FenceGateBlockAccess) block).getOpenSound() : ((FenceGateBlockAccess) block).getCloseSound();
return open ? block.openSound : block.closeSound;
}

public static void moveEntity(XKDPlayer player, Entity entity, Vec3 pPos) {
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/xkdeco.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"ReloadableServerResourcesMixin",
"air_duct.EntityMixin",
"air_duct.LivingEntityMixin",
"air_duct.PlayerMixin",
"forge.FenceGateBlockAccess"
"air_duct.PlayerMixin"
],
"client": [
"air_duct.PlayerRendererMixin",
Expand Down

0 comments on commit e85b99d

Please sign in to comment.