mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
Upgraded Item and Enchantment packages to 1.7
This commit is contained in:
1 parent
c5f8d01b5a
commit
cdde6224ea
6 files changed
+7
-7
No files matched your search
@@ -32,7 +32,7 @@ public class EnchantmentVampirism extends EnchantmentMod {
|
||||
|
||||
@Override
|
||||
public boolean canApply(ItemStack par1ItemStack) {
|
||||
return super.canApply(par1ItemStack) && par1ItemStack.itemID != ModItems.bloodSword.itemID;
|
||||
return super.canApply(par1ItemStack) && par1ItemStack.getItem() != ModItems.bloodSword;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -117,7 +117,7 @@ public class ItemBloodSword extends ItemSword implements IRepairable {
|
||||
|
||||
if(event.entityLiving instanceof EntityPlayer && handle) {
|
||||
EntityPlayer player = (EntityPlayer) event.entityLiving;
|
||||
ItemStack itemInUse = ReflectionHelper.getPrivateValue(EntityPlayer.class, player, LibObfuscation.ITEM_IN_USE);
|
||||
ItemStack itemInUse = player.itemInUse;
|
||||
if(itemInUse != null && itemInUse.getItem()==this) {
|
||||
|
||||
event.setCanceled(true);
|
||||
|
||||
@@ -70,7 +70,7 @@ public class ItemCleansingTalisman extends ItemMod {
|
||||
removed = true;
|
||||
} else for(PotionEffect potion : potions) {
|
||||
int id = potion.getPotionID();
|
||||
if(ReflectionHelper.getPrivateValue(Potion.class, Potion.potionTypes[id], LibObfuscation.IS_BAD_EFFECT)) {
|
||||
if(Potion.potionTypes[id].isBadEffect()) {
|
||||
player.removePotionEffect(id);
|
||||
removed = true;
|
||||
break;
|
||||
|
||||
@@ -65,7 +65,7 @@ public class ItemIchorAxeAdv extends ItemIchorAxe implements IAdvancedTool {
|
||||
boolean doY = direction.offsetY == 0;
|
||||
boolean doZ = direction.offsetZ == 0;
|
||||
|
||||
ToolHandler.removeBlocksInIteration(player, world, x, y, z, doX ? -2 : 0, doY ? -1 : 0, doZ ? -2 : 0, doX ? 3 : 1, doY ? 4 : 1, doZ ? 3 : 1, -1, ToolHandler.materialsAxe, silk, fortune);
|
||||
ToolHandler.removeBlocksInIteration(player, world, x, y, z, doX ? -2 : 0, doY ? -1 : 0, doZ ? -2 : 0, doX ? 3 : 1, doY ? 4 : 1, doZ ? 3 : 1, world.getBlock(x, y, z), ToolHandler.materialsAxe, silk, fortune);
|
||||
break;
|
||||
}
|
||||
case 2 : {
|
||||
|
||||
@@ -85,7 +85,7 @@ public class ItemIchorPickAdv extends ItemIchorPick implements IAdvancedTool {
|
||||
boolean doY = direction.offsetY == 0;
|
||||
boolean doZ = direction.offsetZ == 0;
|
||||
|
||||
ToolHandler.removeBlocksInIteration(player, world, x, y, z, doX ? -2 : 0, doY ? -1 : 0, doZ ? -2 : 0, doX ? 3 : 1, doY ? 4 : 1, doZ ? 3 : 1, -1, ToolHandler.materialsPick, silk, fortune);
|
||||
ToolHandler.removeBlocksInIteration(player, world, x, y, z, doX ? -2 : 0, doY ? -1 : 0, doZ ? -2 : 0, doX ? 3 : 1, doY ? 4 : 1, doZ ? 3 : 1, world.getBlock(x, y, z), ToolHandler.materialsPick, silk, fortune);
|
||||
if(blk== Blocks.bedrock){
|
||||
world.setBlock(x, y, z, Blocks.bedrock);
|
||||
}
|
||||
@@ -96,7 +96,7 @@ public class ItemIchorPickAdv extends ItemIchorPick implements IAdvancedTool {
|
||||
int yo = -direction.offsetY;
|
||||
int zo = -direction.offsetZ;
|
||||
|
||||
ToolHandler.removeBlocksInIteration(player, world, x, y, z, xo >= 0 ? 0 : -10, yo >= 0 ? 0 : -10, zo >= 0 ? 0 : -10, xo > 0 ? 10 : 1, yo > 0 ? 10 : 1, zo > 0 ? 10 : 1, -1, ToolHandler.materialsPick, silk, fortune);
|
||||
ToolHandler.removeBlocksInIteration(player, world, x, y, z, xo >= 0 ? 0 : -10, yo >= 0 ? 0 : -10, zo >= 0 ? 0 : -10, xo > 0 ? 10 : 1, yo > 0 ? 10 : 1, zo > 0 ? 10 : 1, world.getBlock(x, y, z), ToolHandler.materialsPick, silk, fortune);
|
||||
if(blk== Blocks.bedrock){
|
||||
world.setBlock(x, y, z, Blocks.bedrock);
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ public class ItemIchorShovelAdv extends ItemIchorShovel implements IAdvancedTool
|
||||
boolean doY = direction.offsetY == 0;
|
||||
boolean doZ = direction.offsetZ == 0;
|
||||
|
||||
ToolHandler.removeBlocksInIteration(player, world, x, y, z, doX ? -2 : 0, doY ? -1 : 0, doZ ? -2 : 0, doX ? 3 : 1, doY ? 4 : 1, doZ ? 3 : 1, null, ToolHandler.materialsShovel, silk, fortune);
|
||||
ToolHandler.removeBlocksInIteration(player, world, x, y, z, doX ? -2 : 0, doY ? -1 : 0, doZ ? -2 : 0, doX ? 3 : 1, doY ? 4 : 1, doZ ? 3 : 1, world.getBlock(x, y, z), ToolHandler.materialsShovel, silk, fortune);
|
||||
break;
|
||||
}
|
||||
case 2 : {
|
||||
|
||||
Reference in new issue
Block a user