9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-23 08:59:27 +00:00

refactor(bukkit): 移除调试信息

This commit is contained in:
jhqwqmc
2025-03-28 12:37:32 +08:00
parent 2c449404b2
commit afcc95b251

View File

@@ -83,7 +83,6 @@ public class CropBlockBehavior extends BushBlockBehavior {
int age = this.getAge(state); int age = this.getAge(state);
float randomFloat = RandomUtils.generateRandomFloat(0, 1); float randomFloat = RandomUtils.generateRandomFloat(0, 1);
if (age < this.ageProperty.max && randomFloat < 1.0 / Math.floor(25.0 / this.growSpeed + 1.0)) { if (age < this.ageProperty.max && randomFloat < 1.0 / Math.floor(25.0 / this.growSpeed + 1.0)) {
System.out.println("grow");
Reflections.method$Level$setBlock.invoke(level, pos, getStateForAge(state, age + 1), UpdateOption.UPDATE_ALL.flags()); Reflections.method$Level$setBlock.invoke(level, pos, getStateForAge(state, age + 1), UpdateOption.UPDATE_ALL.flags());
} }
} }