9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-28 03:19:14 +00:00

rename methods

This commit is contained in:
XiaoMoMi
2025-03-21 03:45:47 +08:00
parent 88cec66abb
commit 876b41aee1
7 changed files with 20 additions and 24 deletions

View File

@@ -108,7 +108,7 @@ public class BukkitBlockManager extends AbstractBlockManager {
this.fallingBlockRemoveListener = new FallingBlockRemoveListener();
} else this.fallingBlockRemoveListener = null;
this.stateId2ImmutableBlockStates = new ImmutableBlockState[customBlockCount];
Arrays.fill(this.stateId2ImmutableBlockStates, EmptyBlock.INSTANCE.getDefaultState());
Arrays.fill(this.stateId2ImmutableBlockStates, EmptyBlock.INSTANCE.defaultState());
instance = this;
}
@@ -133,7 +133,7 @@ public class BukkitBlockManager extends AbstractBlockManager {
this.cachedSuggestions.clear();
this.blockStateOverrides.clear();
if (EmptyBlock.INSTANCE != null)
Arrays.fill(this.stateId2ImmutableBlockStates, EmptyBlock.INSTANCE.getDefaultState());
Arrays.fill(this.stateId2ImmutableBlockStates, EmptyBlock.INSTANCE.defaultState());
}
@Override

View File

@@ -595,7 +595,7 @@ public class BukkitInjector {
int stateId = BlockStateUtils.blockStateToId(newState);
CESection section = holder.ceSection();
if (BlockStateUtils.isVanillaBlock(stateId)) {
section.setBlockState(x, y, z, EmptyBlock.INSTANCE.getDefaultState());
section.setBlockState(x, y, z, EmptyBlock.INSTANCE.defaultState());
if (ConfigManager.enableLightSystem() && ConfigManager.forceUpdateLight()) {
updateLightIfChanged(holder, previousState, newState, null, y, z, x);
}