removed unloadedEntityFix since its no longer reproducible and causes entity duplications. Fixes #443
This commit is contained in:
1 parent
046d931770
commit
dedd6e3c8f
3 files changed
-25
No files matched your search
@@ -1,21 +0,0 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.CarpetSettings;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.server.world.ServerWorld;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
|
||||
@Mixin(ServerWorld.class)
|
||||
public class ServerWorld_unloadedEntityMixin
|
||||
{
|
||||
@Redirect(method = "checkEntityChunkPos", at = @At(
|
||||
value = "INVOKE",
|
||||
target = "Lnet/minecraft/entity/Entity;teleportRequested()Z"
|
||||
))
|
||||
private boolean addFastEntityCheck(Entity entity)
|
||||
{
|
||||
return CarpetSettings.unloadedEntityFix || entity.teleportRequested();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user