mirror of
https://github.com/GTNewHorizons/ForbiddenMagic.git
synced 2026-11-12 08:17:56 +00:00
Neutronium Wand is flagrantly Creative-Only
This commit is contained in:
1 parent
a2457be22f
commit
30a42b13ee
1 file changed
+6
-4
@@ -425,13 +425,15 @@ public class FMEventHandler
|
||||
@ForgeSubscribe
|
||||
public void onTooltip(ItemTooltipEvent event)
|
||||
{
|
||||
if(!Compat.bm)
|
||||
return;
|
||||
if(event.itemStack.getItem() instanceof ItemWandCasting && ((ItemWandCasting)event.itemStack.getItem()).getRod(event.itemStack).getTag().startsWith("blood")){
|
||||
if (!event.itemStack.stackTagCompound.getString("ownerName").equals(""))
|
||||
if(event.itemStack.getItem() instanceof ItemWandCasting){
|
||||
if (((ItemWandCasting)event.itemStack.getItem()).getRod(event.itemStack).getTag().startsWith("blood") && !event.itemStack.stackTagCompound.getString("ownerName").equals(""))
|
||||
{
|
||||
event.toolTip.add("Current owner: " + event.itemStack.stackTagCompound.getString("ownerName"));
|
||||
}
|
||||
else if(((ItemWandCasting)event.itemStack.getItem()).getRod(event.itemStack).getTag().startsWith("neutronium"))
|
||||
{
|
||||
event.toolTip.add("Creative Only");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user