mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-25 01:49:30 +00:00
fix(bukkit): 修复 MOD 方块状态 ID 映射问题
This commit is contained in:
@@ -70,7 +70,8 @@ public class PacketConsumers {
|
||||
}
|
||||
|
||||
public static int remapMOD(int stateId) {
|
||||
return mappingsMOD[stateId];
|
||||
int modStateId = mappingsMOD[stateId];
|
||||
return BlockStateUtils.isVanillaBlock(modStateId) ? remap(modStateId) : modStateId;
|
||||
}
|
||||
|
||||
public static final TriConsumer<NetWorkUser, NMSPacketEvent, Object> LEVEL_CHUNK_WITH_LIGHT = (user, event, packet) -> {
|
||||
|
||||
Reference in New Issue
Block a user