diff --git a/src/main/java/me/senseiwells/replay/mixin/compat/vmp/TrackedEntityMixin.java b/src/main/java/me/senseiwells/replay/mixin/compat/vmp/TrackedEntityMixin.java deleted file mode 100644 index 85441bd..0000000 --- a/src/main/java/me/senseiwells/replay/mixin/compat/vmp/TrackedEntityMixin.java +++ /dev/null @@ -1,43 +0,0 @@ -package me.senseiwells.replay.mixin.compat.vmp; - -import com.ishland.vmp.mixins.playerwatching.optimize_nearby_entity_tracking_lookups.MixinThreadedAnvilChunkStorageEntityTracker; -import com.llamalad7.mixinextras.injector.ModifyExpressionValue; -import me.senseiwells.replay.chunk.ChunkRecordable; -import me.senseiwells.replay.player.PlayerRecorders; -import net.minecraft.server.level.ChunkMap; -import net.minecraft.server.level.ServerPlayer; -import net.minecraft.world.entity.Entity; -import org.spongepowered.asm.mixin.Dynamic; -import org.spongepowered.asm.mixin.Final; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.Shadow; -import org.spongepowered.asm.mixin.injection.At; - -@Mixin(value = ChunkMap.TrackedEntity.class, priority = 1100) -public class TrackedEntityMixin { - @Shadow - @Final - Entity entity; - - @Dynamic(mixin = MixinThreadedAnvilChunkStorageEntityTracker.class) - @ModifyExpressionValue( - method = "tryTick", - at = @At( - value = "INVOKE", - target = "Ljava/util/Set;isEmpty()Z" - ), - remap = false - ) - private boolean shouldNotTick(boolean original) { - if (!original) { - return false; - } - if (!((ChunkRecordable) this).getRecorders().isEmpty()) { - return false; - } - if (this.entity instanceof ServerPlayer player) { - return !PlayerRecorders.has(player); - } - return true; - } -} diff --git a/src/main/resources/serverreplay.mixins.json b/src/main/resources/serverreplay.mixins.json index dc0ee6a..c0ebbb1 100644 --- a/src/main/resources/serverreplay.mixins.json +++ b/src/main/resources/serverreplay.mixins.json @@ -24,7 +24,6 @@ "compat.servux.ServuxPacketMixin", "compat.syncmatica.SyncmaticaPacketPayloadMixin", "compat.vmp.NearbyEntityTrackingMixin", - "compat.vmp.TrackedEntityMixin", "network.IdDispatchCodecAccessor", "player.ServerCommonPacketListenerImplMixin", "player.ServerConfigurationPacketListenerImplMixin",