Skip to content

Commit 2f56c5f

Browse files
committedNov 1, 2024·
Disable entity activation range
This patch is broken as is and Mojang has since introduced simulation distance which more or less makes this deprecated. The code also had logic bug where it tried to only tick entities in unloaded chunks, contrary to what we wanted, which would only rarely surface.
1 parent 08a7c2c commit 2f56c5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/mixins/java/org/spongepowered/common/mixin/plugin/entityactivation/EntityActivationRange.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public static boolean checkEntityImmunities(final Entity entity) {
364364
*/
365365
public static boolean checkIfActive(final Entity entity) {
366366
// Never safe to skip fireworks or entities not yet added to chunk
367-
if (entity instanceof Player || entity.level().isClientSide() || !entity.touchingUnloadedChunk() || entity instanceof FireworkRocketEntity) {
367+
if (entity instanceof Player || entity.level().isClientSide() || entity.touchingUnloadedChunk() || entity instanceof FireworkRocketEntity) {
368368
return true;
369369
}
370370
final LevelChunkBridge activeChunk = ((ActiveChunkReferantBridge) entity).bridge$getActiveChunk();

‎src/mixins/java/org/spongepowered/common/mixin/plugin/entityactivation/EntityActivationRangePlugin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class EntityActivationRangePlugin extends AbstractMixinConfigPlugin {
3636

3737
@Override
3838
public boolean shouldApplyMixin(final String targetClassName, final String mixinClassName) {
39-
return SpongeConfigs.getCommon().get().modules.entityActivationRange;
39+
return false && SpongeConfigs.getCommon().get().modules.entityActivationRange;
4040
}
4141

4242
@Override

0 commit comments

Comments
 (0)
Please sign in to comment.