mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-23 08:59:27 +00:00
feat(client-mod): 修复客户端视觉问题
This commit is contained in:
@@ -161,11 +161,11 @@ public class BukkitNetworkManager implements NetworkManager, Listener {
|
||||
|
||||
@EventHandler
|
||||
public void onPlayerRegisterChannel(PlayerRegisterChannelEvent event) {
|
||||
if (!event.getChannel().equals("craftengine:payload")) return;
|
||||
Player player = event.getPlayer();
|
||||
NetWorkUser user = getUser(player);
|
||||
if (user != null) {
|
||||
user.setUsingClientMod(true);
|
||||
}
|
||||
if (user == null) return;
|
||||
user.setUsingClientMod(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -19,6 +19,8 @@ sourceSets {
|
||||
runtimeClasspath += sourceSets.main.get().runtimeClasspath
|
||||
}
|
||||
main {
|
||||
compileClasspath += sourceSets["client"].output
|
||||
runtimeClasspath += sourceSets["client"].output
|
||||
output.dir(sourceSets["client"].output)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ public class BlockUtils {
|
||||
if (world != null && pos != null) {
|
||||
return BiomeColors.getFoliageColor(world, pos);
|
||||
}
|
||||
return FoliageColors.DEFAULT; // 默认颜色
|
||||
return FoliageColors.DEFAULT;
|
||||
},
|
||||
block
|
||||
);
|
||||
|
||||
@@ -2,7 +2,6 @@ package net.momirealms.craftEngineFabricMod.util;
|
||||
|
||||
import net.minecraft.block.AbstractBlock;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.registry.Registries;
|
||||
import net.minecraft.registry.Registry;
|
||||
import net.minecraft.registry.RegistryKey;
|
||||
|
||||
Reference in New Issue
Block a user