Skip to content

Commit 9b15449

Browse files
authored
Change out LDLib client side check to GTCEu one (#4365)
1 parent 69bb85a commit 9b15449

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/main/java/com/gregtechceu/gtceu/common/item/armor/GTArmorItem.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
package com.gregtechceu.gtceu.common.item.armor;
22

3+
import com.gregtechceu.gtceu.GTCEu;
34
import com.gregtechceu.gtceu.api.data.chemical.material.Material;
45
import com.gregtechceu.gtceu.api.data.chemical.material.properties.ArmorProperty;
56
import com.gregtechceu.gtceu.client.renderer.item.ArmorItemRenderer;
67

7-
import com.lowdragmc.lowdraglib.Platform;
8-
98
import net.minecraft.client.color.item.ItemColor;
109
import net.minecraft.network.chat.Component;
1110
import net.minecraft.resources.ResourceLocation;
@@ -32,7 +31,7 @@ public GTArmorItem(ArmorMaterial armorMaterial, ArmorItem.Type type, Properties
3231
super(armorMaterial, type, properties);
3332
this.material = material;
3433
this.armorProperty = armorProperty;
35-
if (Platform.isClient()) {
34+
if (GTCEu.isClientSide()) {
3635
ArmorItemRenderer.create(this, type);
3736
}
3837
}

src/main/java/com/gregtechceu/gtceu/common/item/armor/GTDyeableArmorItem.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
package com.gregtechceu.gtceu.common.item.armor;
22

3+
import com.gregtechceu.gtceu.GTCEu;
34
import com.gregtechceu.gtceu.api.data.chemical.material.Material;
45
import com.gregtechceu.gtceu.api.data.chemical.material.properties.ArmorProperty;
56
import com.gregtechceu.gtceu.client.renderer.item.ArmorItemRenderer;
67

7-
import com.lowdragmc.lowdraglib.Platform;
8-
98
import net.minecraft.world.item.*;
109

1110
public class GTDyeableArmorItem extends GTArmorItem implements DyeableLeatherItem {
1211

1312
public GTDyeableArmorItem(ArmorMaterial armorMaterial, ArmorItem.Type type, Item.Properties properties,
1413
Material material, ArmorProperty armorProperty) {
1514
super(armorMaterial, type, properties, material, armorProperty);
16-
if (Platform.isClient()) {
15+
if (GTCEu.isClientSide()) {
1716
ArmorItemRenderer.create(this, type);
1817
}
1918
}

0 commit comments

Comments
 (0)