mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-23 17:09:19 +00:00
refactor(bukkit): 移除调试信息
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user