Skip to content

Commit e85b99d

Browse files
committed
NeoForge made those two fields public when reintroduce the patch.
1 parent e79c227 commit e85b99d

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

src/main/java/org/teacon/xkdeco/mixin/forge/FenceGateBlockAccess.java

-16
This file was deleted.

src/main/java/org/teacon/xkdeco/util/CommonProxy.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import org.teacon.xkdeco.block.XKDBlock;
99
import org.teacon.xkdeco.duck.XKDPlayer;
1010
import org.teacon.xkdeco.init.MimicWallsLoader;
11-
import org.teacon.xkdeco.mixin.forge.FenceGateBlockAccess;
1211

1312
import net.minecraft.core.BlockPos;
1413
import net.minecraft.core.Direction;
@@ -51,7 +50,7 @@ public static boolean isLadder(BlockState blockState, LevelReader world, BlockPo
5150
}
5251

5352
public static SoundEvent getFenceGateSound(FenceGateBlock block, boolean open) {
54-
return open ? ((FenceGateBlockAccess) block).getOpenSound() : ((FenceGateBlockAccess) block).getCloseSound();
53+
return open ? block.openSound : block.closeSound;
5554
}
5655

5756
public static void moveEntity(XKDPlayer player, Entity entity, Vec3 pPos) {

src/main/resources/xkdeco.mixins.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"ReloadableServerResourcesMixin",
99
"air_duct.EntityMixin",
1010
"air_duct.LivingEntityMixin",
11-
"air_duct.PlayerMixin",
12-
"forge.FenceGateBlockAccess"
11+
"air_duct.PlayerMixin"
1312
],
1413
"client": [
1514
"air_duct.PlayerRendererMixin",

0 commit comments

Comments
 (0)