mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-28 19:39:11 +00:00
feat(client-mod): 修复客户端视觉问题
This commit is contained in:
@@ -56,8 +56,9 @@ public class PacketConsumers {
|
||||
}
|
||||
|
||||
public static int remap(int stateId, NetWorkUser user) {
|
||||
if (user.usingClientMod() && !BlockStateUtils.isVanillaBlock(stateId)) return stateId;
|
||||
return mappings[stateId];
|
||||
int remapId = mappings[stateId];
|
||||
if (user.usingClientMod() && BlockStateUtils.isVanillaBlock(remapId)) return stateId;
|
||||
return remapId;
|
||||
}
|
||||
|
||||
public static final TriConsumer<NetWorkUser, NMSPacketEvent, Object> LEVEL_CHUNK_WITH_LIGHT = (user, event, packet) -> {
|
||||
|
||||
Reference in New Issue
Block a user