mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
Prevented duplicate effects from duplicate tablets of necromancy
This commit is contained in:
1 parent
bfec7484a4
commit
aaa9f0cc8d
1 file changed
+11
-9
@@ -68,10 +68,11 @@ public class TileSummon extends TileEntity {
|
||||
}
|
||||
|
||||
|
||||
if (!worldObj.isRemote) {
|
||||
if (!isInfused || ItemMobAspect.lastUsedTabletMatches(ped1.getStackInSlot(0), this)
|
||||
&& ItemMobAspect.lastUsedTabletMatches(ped2.getStackInSlot(0), this)
|
||||
&& ItemMobAspect.lastUsedTabletMatches(ped3.getStackInSlot(0), this)) {
|
||||
if (!isInfused || ItemMobAspect.lastUsedTabletMatches(ped1.getStackInSlot(0), this)
|
||||
&& ItemMobAspect.lastUsedTabletMatches(ped2.getStackInSlot(0), this)
|
||||
&& ItemMobAspect.lastUsedTabletMatches(ped3.getStackInSlot(0), this)) {
|
||||
|
||||
if (!worldObj.isRemote) {
|
||||
Entity spawn = EntityList.createEntityByName(recipe.toString(), worldObj);
|
||||
spawn.setLocationAndAngles(xCoord + .5, yCoord + 1, zCoord + .5, 0, 0);
|
||||
if (spawn instanceof EntitySkeleton && worldObj.provider.isHellWorld) {
|
||||
@@ -81,11 +82,12 @@ public class TileSummon extends TileEntity {
|
||||
((EntityLiving) spawn).onSpawnWithEgg(null);
|
||||
((EntityLiving) spawn).playLivingSound();
|
||||
}
|
||||
}
|
||||
if (worldObj.isRemote) {
|
||||
ThaumicTinkerer.tcProxy.essentiaTrailFx(worldObj, ped1.xCoord, ped1.yCoord, ped1.zCoord, xCoord, yCoord, zCoord, 20, aspects.get(0).getColor(), 20);
|
||||
ThaumicTinkerer.tcProxy.essentiaTrailFx(worldObj, ped2.xCoord, ped2.yCoord, ped2.zCoord, xCoord, yCoord, zCoord, 20, aspects.get(1).getColor(), 20);
|
||||
ThaumicTinkerer.tcProxy.essentiaTrailFx(worldObj, ped3.xCoord, ped3.yCoord, ped3.zCoord, xCoord, yCoord, zCoord, 20, aspects.get(2).getColor(), 20);
|
||||
|
||||
if (worldObj.isRemote) {
|
||||
ThaumicTinkerer.tcProxy.essentiaTrailFx(worldObj, ped1.xCoord, ped1.yCoord, ped1.zCoord, xCoord, yCoord, zCoord, 20, aspects.get(0).getColor(), 20);
|
||||
ThaumicTinkerer.tcProxy.essentiaTrailFx(worldObj, ped2.xCoord, ped2.yCoord, ped2.zCoord, xCoord, yCoord, zCoord, 20, aspects.get(1).getColor(), 20);
|
||||
ThaumicTinkerer.tcProxy.essentiaTrailFx(worldObj, ped3.xCoord, ped3.yCoord, ped3.zCoord, xCoord, yCoord, zCoord, 20, aspects.get(2).getColor(), 20);
|
||||
}
|
||||
}
|
||||
if (isInfused) {
|
||||
ItemMobAspect.markLastUsedTablet(ped1.getStackInSlot(0), this);
|
||||
|
||||
Reference in new issue
Block a user