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
@@ -214,9 +214,6 @@ public class CarpetSettings
|
||||
)
|
||||
public static boolean piglinsSpawningInBastions = false;
|
||||
|
||||
@Rule(desc = "Entities pushed or moved into unloaded chunks no longer disappear", category = {EXPERIMENTAL, BUGFIX})
|
||||
public static boolean unloadedEntityFix = false;
|
||||
|
||||
@Rule( desc = "TNT doesn't update when placed against a power source", category = {CREATIVE, TNT} )
|
||||
public static boolean tntDoNotUpdate = false;
|
||||
|
||||
|
||||
@@ -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