removed unloadedEntityFix since its no longer reproducible and causes entity duplications. Fixes #443

This commit is contained in:
gnembon committed 2020-08-31 00:29:12 -03:00
1 parent 046d931770
commit dedd6e3c8f
3 files changed
-25

No files matched your search

-3
View File
@@ -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();
}
}
-1
View File
@@ -51,7 +51,6 @@
"ServerWorld_spawnChunksMixin",
"MobEntityMixin",
"ServerWorld_unloadedEntityMixin",
"EntityTrackerEntry_leashFixMixin",
"VillagerEntity_aiMixin",