mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-10-26 14:33:48 +00:00
Fixed the Celestial Recall focus not working.
This commit is contained in:
1 parent
5908e4c01e
commit
c28cbbfe44
1 file changed
+1
-8
@@ -44,13 +44,6 @@ public class ItemFocusRecall extends ItemModFocus {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack onFocusRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer, MovingObjectPosition paramMovingObjectPosition) {
|
||||
ItemWandCasting wand = (ItemWandCasting) par1ItemStack.getItem();
|
||||
|
||||
return wand.consumeAllVis(par1ItemStack, par3EntityPlayer, cost, false) ? super.onItemRightClick(par1ItemStack, par2World, par3EntityPlayer) : par1ItemStack;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUsingFocusTick(ItemStack paramItemStack, EntityPlayer paramEntityPlayer, int paramInt) {
|
||||
ItemWandCasting wand = (ItemWandCasting) paramItemStack.getItem();
|
||||
@@ -72,7 +65,7 @@ public class ItemFocusRecall extends ItemModFocus {
|
||||
int y = ItemSkyPearl.getY(stackToCount);
|
||||
int z = ItemSkyPearl.getZ(stackToCount);
|
||||
|
||||
if(TileWarpGate.teleportPlayer(paramEntityPlayer, new ChunkCoordinates(x, y, z)))
|
||||
if(wand.consumeAllVis(paramItemStack, paramEntityPlayer, getVisCost(), false) && TileWarpGate.teleportPlayer(paramEntityPlayer, new ChunkCoordinates(x, y, z)))
|
||||
wand.consumeAllVis(paramItemStack, paramEntityPlayer, getVisCost(), true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user