diff --git a/build-logic/build.gradle.kts b/build-logic/build.gradle.kts index d5ed3c6..7f6a8ee 100755 --- a/build-logic/build.gradle.kts +++ b/build-logic/build.gradle.kts @@ -32,4 +32,4 @@ kotlin { configure { paths = files("../src/main/resources/nitori.accesswidener") -} \ No newline at end of file +} diff --git a/src/main/java/net/gensokyoreimagined/nitori/core/ChunkMapMixin.java b/src/main/java/net/gensokyoreimagined/nitori/core/ChunkMapMixin.java deleted file mode 100755 index 7ef0f10..0000000 --- a/src/main/java/net/gensokyoreimagined/nitori/core/ChunkMapMixin.java +++ /dev/null @@ -1,38 +0,0 @@ -// Nitori Copyright (C) 2024 Gensokyo Reimagined -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . -package net.gensokyoreimagined.nitori.core; - -import it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap; -import it.unimi.dsi.fastutil.ints.Int2ObjectMap; -import net.minecraft.server.level.ChunkMap; -import org.spongepowered.asm.mixin.Final; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.Mutable; -import org.spongepowered.asm.mixin.Shadow; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; - -@Mixin(ChunkMap.class) -public class ChunkMapMixin { - - @Mutable - @Shadow @Final public Int2ObjectMap entityMap; - - @Inject(method = "", at = @At("RETURN")) - private void reassignEntityTrackers(CallbackInfo ci) { - this.entityMap = new Int2ObjectLinkedOpenHashMap<>(); - } -} diff --git a/src/main/resources/mixins.core.json b/src/main/resources/mixins.core.json index bbbee7f..ec97e28 100755 --- a/src/main/resources/mixins.core.json +++ b/src/main/resources/mixins.core.json @@ -20,6 +20,10 @@ "MixinMob", "MixinWorldGenRegion", "MixinNoiseBasedChunkGenerator", - "MixinBlockPos" + "MixinBlockPos", + "MixinIteratorSafeOrderedReferenceSet", + "MixinChunkEntitySlicess", + "MixinServerBossEvent" + "MixinServerEntity" ] }