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

Update BukkitInjector.java

This commit is contained in:
XiaoMoMi
2025-03-24 05:11:31 +08:00
parent b796862baa
commit 3bf44057fc

View File

@@ -622,8 +622,10 @@ public class BukkitInjector {
} else {
ImmutableBlockState immutableBlockState = BukkitBlockManager.instance().getImmutableBlockStateUnsafe(stateId);
section.setBlockState(x, y, z, immutableBlockState);
if (ConfigManager.enableLightSystem()) {
updateLightIfChanged(holder, previousState, newState, immutableBlockState.vanillaBlockState().handle(), y, z, x);
if (!immutableBlockState.isEmpty()) {
if (ConfigManager.enableLightSystem()) {
updateLightIfChanged(holder, previousState, newState, immutableBlockState.vanillaBlockState().handle(), y, z, x);
}
}
}
} catch (Exception e) {