mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-25 01:49:30 +00:00
perf(core): 优化方块实体的 tick 更新机制
This commit is contained in:
@@ -18,7 +18,6 @@ public abstract class BaseParticleBlockEntity extends BlockEntity {
|
||||
}
|
||||
|
||||
public static void tick(CEWorld ceWorld, BlockPos blockPos, ImmutableBlockState state, BaseParticleBlockEntity particle) {
|
||||
if (true) return;
|
||||
particle.tickCount++;
|
||||
if (particle.tickCount % 10 != 0) return;
|
||||
particle.animateTick(state, ceWorld.world(), blockPos);
|
||||
|
||||
Reference in New Issue
Block a user