mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 21:49:58 +00:00
Merge pull request #3090 from HenryLoenwind/magicalShearings
Fixes for shears
This commit is contained in:
commit
42d23e6cb6
1 file changed
+7
-2
@@ -240,6 +240,11 @@ public class ItemDarkSteelShears extends ItemShears implements IEnergyContainerI
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemEnchantability() {
|
||||
return ItemDarkSteelSword.MATERIAL.getEnchantability();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addCommonEntries(ItemStack itemstack, EntityPlayer entityplayer, List list, boolean flag) {
|
||||
DarkSteelRecipeManager.instance.addCommonTooltipEntries(itemstack, entityplayer, list, flag);
|
||||
@@ -279,10 +284,10 @@ public class ItemDarkSteelShears extends ItemShears implements IEnergyContainerI
|
||||
public int compare(BlockCoord arg0, BlockCoord arg1) {
|
||||
int d1 = refPoint.getDistSq(arg0);
|
||||
int d2 = refPoint.getDistSq(arg1);
|
||||
return compare(d1, d1);
|
||||
return compare(d1, d2);
|
||||
}
|
||||
|
||||
//NB: Copy of Integer.compare, which i sonly in Java 1.7+
|
||||
// NB: Copy of Integer.compare, which is only in Java 1.7+
|
||||
public static int compare(int x, int y) {
|
||||
return (x < y) ? -1 : ((x == y) ? 0 : 1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user