yielding to masa's tweakeroo with TE tick check, so mods don't collide
This commit is contained in:
1 parent
444c3fdde9
commit
7f9af99a5d
1 file changed
+3
-2
@@ -57,11 +57,12 @@ public abstract class World_tickMixin implements WorldInterface
|
|||||||
|
|
||||||
@Redirect(method = "tickBlockEntities", at = @At(
|
@Redirect(method = "tickBlockEntities", at = @At(
|
||||||
value = "INVOKE",
|
value = "INVOKE",
|
||||||
target = "Lnet/minecraft/block/entity/BlockEntity;hasWorld()Z"
|
target = "Lnet/minecraft/block/entity/BlockEntity;isInvalid()Z",
|
||||||
|
ordinal = 0
|
||||||
))
|
))
|
||||||
private boolean checkProcessTEs(BlockEntity blockEntity)
|
private boolean checkProcessTEs(BlockEntity blockEntity)
|
||||||
{
|
{
|
||||||
return blockEntity.hasWorld() && TickSpeed.process_entities;
|
return blockEntity.isInvalid() || !TickSpeed.process_entities;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "tickBlockEntities", at = @At(
|
@Inject(method = "tickBlockEntities", at = @At(
|
||||||
|
|||||||
Reference in new issue
Block a user