aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/item
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2017-11-28 16:18:16 +1000
committerAlkalus <draknyte1@hotmail.com>2017-11-28 16:18:16 +1000
commit6bf6499f68796e77ee76d523e5dc706e08d51288 (patch)
tree5b13fa4f9c1e5e08690337b9bb6f21dbaca62c43 /src/Java/gtPlusPlus/core/item
parent652faa496015f7d70a1e4f1837d37558a82e4c14 (diff)
downloadGT5-Unofficial-6bf6499f68796e77ee76d523e5dc706e08d51288.tar.gz
GT5-Unofficial-6bf6499f68796e77ee76d523e5dc706e08d51288.tar.bz2
GT5-Unofficial-6bf6499f68796e77ee76d523e5dc706e08d51288.zip
$ 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.
Diffstat (limited to 'src/Java/gtPlusPlus/core/item')
-rw-r--r--src/Java/gtPlusPlus/core/item/bauble/BaseBauble.java4
1 files changed, 1 insertions, 3 deletions
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()));