mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-31 21:06:31 +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) {
|
public static int remap(int stateId, NetWorkUser user) {
|
||||||
if (user.usingClientMod() && !BlockStateUtils.isVanillaBlock(stateId)) return stateId;
|
int remapId = mappings[stateId];
|
||||||
return 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) -> {
|
public static final TriConsumer<NetWorkUser, NMSPacketEvent, Object> LEVEL_CHUNK_WITH_LIGHT = (user, event, packet) -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user