diff --git a/src/main/java/com/gregtechceu/gtceu/common/item/armor/GTArmorItem.java b/src/main/java/com/gregtechceu/gtceu/common/item/armor/GTArmorItem.java index f6943a7d0e..faa4b6493e 100644 --- a/src/main/java/com/gregtechceu/gtceu/common/item/armor/GTArmorItem.java +++ b/src/main/java/com/gregtechceu/gtceu/common/item/armor/GTArmorItem.java @@ -1,11 +1,10 @@ package com.gregtechceu.gtceu.common.item.armor; +import com.gregtechceu.gtceu.GTCEu; import com.gregtechceu.gtceu.api.data.chemical.material.Material; import com.gregtechceu.gtceu.api.data.chemical.material.properties.ArmorProperty; import com.gregtechceu.gtceu.client.renderer.item.ArmorItemRenderer; -import com.lowdragmc.lowdraglib.Platform; - import net.minecraft.client.color.item.ItemColor; import net.minecraft.network.chat.Component; import net.minecraft.resources.ResourceLocation; @@ -32,7 +31,7 @@ public GTArmorItem(ArmorMaterial armorMaterial, ArmorItem.Type type, Properties super(armorMaterial, type, properties); this.material = material; this.armorProperty = armorProperty; - if (Platform.isClient()) { + if (GTCEu.isClientSide()) { ArmorItemRenderer.create(this, type); } } diff --git a/src/main/java/com/gregtechceu/gtceu/common/item/armor/GTDyeableArmorItem.java b/src/main/java/com/gregtechceu/gtceu/common/item/armor/GTDyeableArmorItem.java index ea66da0be6..ecd7f2d7ff 100644 --- a/src/main/java/com/gregtechceu/gtceu/common/item/armor/GTDyeableArmorItem.java +++ b/src/main/java/com/gregtechceu/gtceu/common/item/armor/GTDyeableArmorItem.java @@ -1,11 +1,10 @@ package com.gregtechceu.gtceu.common.item.armor; +import com.gregtechceu.gtceu.GTCEu; import com.gregtechceu.gtceu.api.data.chemical.material.Material; import com.gregtechceu.gtceu.api.data.chemical.material.properties.ArmorProperty; import com.gregtechceu.gtceu.client.renderer.item.ArmorItemRenderer; -import com.lowdragmc.lowdraglib.Platform; - import net.minecraft.world.item.*; public class GTDyeableArmorItem extends GTArmorItem implements DyeableLeatherItem { @@ -13,7 +12,7 @@ public class GTDyeableArmorItem extends GTArmorItem implements DyeableLeatherIte public GTDyeableArmorItem(ArmorMaterial armorMaterial, ArmorItem.Type type, Item.Properties properties, Material material, ArmorProperty armorProperty) { super(armorMaterial, type, properties, material, armorProperty); - if (Platform.isClient()) { + if (GTCEu.isClientSide()) { ArmorItemRenderer.create(this, type); } }