mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-17 11:15:03 +00:00
Removed the notice thing, wasn' working anyway
This commit is contained in:
1 parent
c500a5a580
commit
cc0f2fdc7a
9 files changed
+1
-48
No files matched your search
@@ -15,7 +15,7 @@ import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
public class ClientEvents {
|
||||
public static int cooldown;
|
||||
public static boolean active;
|
||||
public static String notice = EnumChatFormatting.DARK_RED + "This item's recipe has been changed by ModTweaker.";
|
||||
|
||||
@SubscribeEvent
|
||||
public void onDrawTooltip(ItemTooltipEvent event) {
|
||||
|
||||
@@ -23,7 +23,6 @@ public static String notice = EnumChatFormatting.DARK_RED + "This item's recipe
|
||||
if (player != null) {
|
||||
IItemStack hand = MineTweakerMC.getIItemStack(event.itemStack);
|
||||
if (hand != null) {
|
||||
|
||||
if (active) {
|
||||
|
||||
String print = hand.toString();
|
||||
@@ -38,11 +37,6 @@ public static String notice = EnumChatFormatting.DARK_RED + "This item's recipe
|
||||
cooldown--;
|
||||
}
|
||||
|
||||
for (ItemStack stack : TweakerPlugin.changed) {
|
||||
if (stack.isItemEqual(event.itemStack) && event.toolTip.contains(notice)) {
|
||||
event.toolTip.add(notice);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user