mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-26 14:53:21 +00:00
finished functionality packager
This commit is contained in:
1 parent
3d494de9bc
commit
6c5032f5d6
8 files changed
+237
-28
No files matched your search
@@ -30,6 +30,7 @@ import net.minecraftforge.event.entity.player.PlayerInteractEvent;
|
||||
import net.minecraftforge.event.world.BlockEvent;
|
||||
import net.minecraftforge.event.world.ExplosionEvent;
|
||||
import net.minecraftforge.event.world.WorldEvent;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
import thaumcraft.common.config.ConfigBlocks;
|
||||
import thaumcraft.common.items.wands.ItemWandCasting;
|
||||
import thaumcraft.common.tiles.TileJarFillable;
|
||||
@@ -201,4 +202,19 @@ public class EventHandlerWorld {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent(priority = EventPriority.LOWEST)
|
||||
public void onLow(ItemTooltipEvent e) {
|
||||
if(e.itemStack.getItem() == RegisteredItems.itemPackage) {
|
||||
if((e.itemStack.getItemDamage() & 1) == 1) {
|
||||
for(int i = 0; i < e.toolTip.size(); i++) {
|
||||
String line = e.toolTip.get(i);
|
||||
if(line.contains(Gadomancy.NAME)) {
|
||||
line = line.replace(Gadomancy.NAME, Thaumcraft.MODNAME);
|
||||
e.toolTip.set(i, line);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user