Fixed the GC issues
This commit is contained in:
parent
b34ff3c58e
commit
5a4bb6e8e8
|
@ -145,6 +145,7 @@ public class AlchemicalWizardry
|
||||||
|
|
||||||
public static boolean isThaumcraftLoaded;
|
public static boolean isThaumcraftLoaded;
|
||||||
public static boolean isForestryLoaded;
|
public static boolean isForestryLoaded;
|
||||||
|
public static boolean isGCLoaded;
|
||||||
|
|
||||||
public static CreativeTabs tabBloodMagic = new CreativeTabs("tabBloodMagic")
|
public static CreativeTabs tabBloodMagic = new CreativeTabs("tabBloodMagic")
|
||||||
{
|
{
|
||||||
|
@ -958,5 +959,13 @@ public class AlchemicalWizardry
|
||||||
{
|
{
|
||||||
this.isForestryLoaded = false;
|
this.isForestryLoaded = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(Loader.isModLoaded("GalacticraftCore"))
|
||||||
|
{
|
||||||
|
this.isGCLoaded = true;
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
this.isGCLoaded = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,11 +66,6 @@ public class SacrificialDagger extends Item
|
||||||
par2World.spawnParticle("reddust", posX + Math.random() - Math.random(), posY + Math.random() - Math.random(), posZ + Math.random() - Math.random(), f1, f2, f3);
|
par2World.spawnParticle("reddust", posX + Math.random() - Math.random(), posY + Math.random() - Math.random(), posZ + Math.random() - Math.random(), f1, f2, f3);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!par2World.isRemote && !(par3EntityPlayer.getClass().equals(EntityPlayerMP.class)))
|
|
||||||
{
|
|
||||||
return par1ItemStack;
|
|
||||||
}
|
|
||||||
|
|
||||||
findAndFillAltar(par2World, par3EntityPlayer, 200);
|
findAndFillAltar(par2World, par3EntityPlayer, 200);
|
||||||
|
|
||||||
if (par3EntityPlayer.getHealth() <= 0.5f)
|
if (par3EntityPlayer.getHealth() <= 0.5f)
|
||||||
|
|
|
@ -39,6 +39,7 @@ public class AlchemyFlask extends Item
|
||||||
super(id);
|
super(id);
|
||||||
this.setMaxDamage(8);
|
this.setMaxDamage(8);
|
||||||
this.setMaxStackSize(1);
|
this.setMaxStackSize(1);
|
||||||
|
setNoRepair();
|
||||||
setCreativeTab(AlchemicalWizardry.tabBloodMagic);
|
setCreativeTab(AlchemicalWizardry.tabBloodMagic);
|
||||||
// TODO Auto-generated constructor stub
|
// TODO Auto-generated constructor stub
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,8 @@ package WayofTime.alchemicalWizardry.common.spell.complex.effect;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
|
import micdoodle8.mods.galacticraft.core.entities.player.GCCorePlayerMP;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
@ -116,13 +118,13 @@ public class SpellHelper
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(player instanceof FakePlayer)
|
if(player instanceof FakePlayer || player.username.contains("[CoFH]"))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
String str = player.getClass().getCanonicalName();
|
String str = player.getClass().getSimpleName();
|
||||||
if(str.contains("GCEntityPlayerMP"))
|
if(str.contains("GC"))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -132,6 +134,6 @@ public class SpellHelper
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue