From 6bf6499f68796e77ee76d523e5dc706e08d51288 Mon Sep 17 00:00:00 2001 From: Alkalus Date: Tue, 28 Nov 2017 16:18:16 +1000 Subject: $ Fixed Thermal Centrifuge Structure check. $ Moved all SubscribeEvents to it's own handler function. % Adjusted tooltips of the Thermal Plant and the Wash Plant to reflect their actual dimensions. --- src/Java/gtPlusPlus/core/item/bauble/BaseBauble.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Java/gtPlusPlus/core/item') diff --git a/src/Java/gtPlusPlus/core/item/bauble/BaseBauble.java b/src/Java/gtPlusPlus/core/item/bauble/BaseBauble.java index a280f17efb..ecaec4318f 100644 --- a/src/Java/gtPlusPlus/core/item/bauble/BaseBauble.java +++ b/src/Java/gtPlusPlus/core/item/bauble/BaseBauble.java @@ -19,14 +19,12 @@ import gtPlusPlus.core.util.Utils; import gtPlusPlus.core.util.nbt.ModularArmourUtils.BT; import gtPlusPlus.core.util.nbt.NBTUtils; import net.minecraft.entity.EntityLivingBase; -import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.attributes.AttributeModifier; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.DamageSource; import net.minecraft.world.World; -import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.living.LivingAttackEvent; @Optional.InterfaceList(value = { @Optional.Interface(iface = "baubles.api.IBauble", modid = "Baubles"), @@ -45,7 +43,7 @@ public class BaseBauble extends Item implements IBauble { public BaseBauble(BaubleType type, String displayName) { this.mThisBauble = type; this.mDisplayName = displayName; - MinecraftForge.EVENT_BUS.register(this); + Utils.registerEvent(this); this.setMaxStackSize(1); this.setCreativeTab(AddToCreativeTab.tabMisc); this.setUnlocalizedName(Utils.sanitizeString(displayName.toLowerCase())); -- cgit