From cf76b3ead68e922466af495785a8393ecf8ee594 Mon Sep 17 00:00:00 2001 From: James58899 Date: Sat, 17 Aug 2024 21:32:31 +0800 Subject: [PATCH] Fix mixin name --- ...ity_ChunkData.java => MixinCustomBlockEntity_ChunkData.java} | 2 +- src/main/resources/tweak.mixin.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/main/java/one/oktw/galaxy/mixin/tweak/{MixinCustomBLockEntity_ChunkData.java => MixinCustomBlockEntity_ChunkData.java} (97%) diff --git a/src/main/java/one/oktw/galaxy/mixin/tweak/MixinCustomBLockEntity_ChunkData.java b/src/main/java/one/oktw/galaxy/mixin/tweak/MixinCustomBlockEntity_ChunkData.java similarity index 97% rename from src/main/java/one/oktw/galaxy/mixin/tweak/MixinCustomBLockEntity_ChunkData.java rename to src/main/java/one/oktw/galaxy/mixin/tweak/MixinCustomBlockEntity_ChunkData.java index 6503c0437..fa72703a3 100644 --- a/src/main/java/one/oktw/galaxy/mixin/tweak/MixinCustomBLockEntity_ChunkData.java +++ b/src/main/java/one/oktw/galaxy/mixin/tweak/MixinCustomBlockEntity_ChunkData.java @@ -31,7 +31,7 @@ import java.util.stream.Collectors; @Mixin(ChunkData.class) -public class MixinCustomBLockEntity_ChunkData { +public class MixinCustomBlockEntity_ChunkData { @Redirect(method = "(Lnet/minecraft/world/chunk/WorldChunk;)V", at = @At(value = "INVOKE", target = "Ljava/util/Map;entrySet()Ljava/util/Set;")) private Set> removeCustomBlock(Map instance) { return instance.entrySet().stream().filter(e -> !(e.getValue() instanceof CustomBlockEntity)).collect(Collectors.toSet()); diff --git a/src/main/resources/tweak.mixin.json b/src/main/resources/tweak.mixin.json index 0d11750e2..dc861f89d 100644 --- a/src/main/resources/tweak.mixin.json +++ b/src/main/resources/tweak.mixin.json @@ -11,7 +11,7 @@ "MixinAsyncChunk_ServerPlayNetworkHandler", "MixinAsyncChunk_StorageIoWorker", "MixinCustomBlockEntity_BarrierBlock", - "MixinCustomBLockEntity_ChunkData", + "MixinCustomBlockEntity_ChunkData", "MixinCustomBlockEntity_Structure", "MixinFixBeacon_BeaconBlockEntity", "MixinGlobalDataPack_VanillaDataPackProvider",