From cdd20299e58ec638064ecd641f0ea99659076965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=81=AA=E8=81=AA?= <178666380@qq.com> Date: Tue, 27 Jun 2017 14:28:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0KC=E6=9D=90=E6=96=99=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E5=BC=80=E5=85=B3=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- patches/cpw/mods/fml/common/registry/GameData.java.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/cpw/mods/fml/common/registry/GameData.java.patch b/patches/cpw/mods/fml/common/registry/GameData.java.patch index a2e2237..96f8de1 100644 --- a/patches/cpw/mods/fml/common/registry/GameData.java.patch +++ b/patches/cpw/mods/fml/common/registry/GameData.java.patch @@ -34,7 +34,7 @@ + Item item = itemRegistry.getRaw(id); + // inject item materials into Bukkit for FML + org.bukkit.Material material = org.bukkit.Material.addMaterial(id, itemRegistry.getNameForObject(item), false); -+ if (material != null) ++ if (material != null && net.minecraft.server.MinecraftServer.kcauldronConfig.loggingMaterialInjection.getValue()) + { + FMLLog.info("Injected new Forge item material %s with ID %d.", material.name(), material.getId()); + } @@ -59,7 +59,7 @@ + Block block = blockRegistry.getRaw(id); + // inject block materials into Bukkit for FML + org.bukkit.Material material = org.bukkit.Material.addMaterial(id, blockRegistry.getNameForObject(block), true); -+ if (material != null) ++ if (material != null && net.minecraft.server.MinecraftServer.kcauldronConfig.loggingMaterialInjection.getValue()) + { + FMLLog.info("Injected new Forge block material %s with ID %d.", material.name(), material.getId()); + }