mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Fix manasteel pick and axe HUD showing the wrong icon
This commit is contained in:
1 parent
45bca55d9a
commit
16e1e95a7d
2 files changed
+4
-2
No files matched your search
+2
-1
@@ -73,8 +73,9 @@ public class ItemManasteelAxe extends AxeItem implements IManaUsingItem, ISortab
|
||||
for(int i = 0; i < player.inventory.getSizeInventory(); i++) {
|
||||
ItemStack stackAt = player.inventory.getStackInSlot(i);
|
||||
if(!stackAt.isEmpty() && SAPLING_PATTERN.matcher(stackAt.getItem().getTranslationKey()).find()) {
|
||||
ItemStack displayStack = stackAt.copy();
|
||||
ActionResultType did = PlayerHelper.substituteUse(ctx, stackAt);
|
||||
ItemsRemainingRenderHandler.set(player, new ItemStack(Blocks.OAK_SAPLING), SAPLING_PATTERN);
|
||||
ItemsRemainingRenderHandler.set(player, displayStack, SAPLING_PATTERN);
|
||||
return did;
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -70,8 +70,9 @@ public class ItemManasteelPick extends PickaxeItem implements IManaUsingItem, IS
|
||||
for(int i = 0; i < player.inventory.getSizeInventory(); i++) {
|
||||
ItemStack stackAt = player.inventory.getStackInSlot(i);
|
||||
if(!stackAt.isEmpty() && TORCH_PATTERN.matcher(stackAt.getItem().getTranslationKey()).find()) {
|
||||
ItemStack displayStack = stackAt.copy();
|
||||
ActionResultType did = PlayerHelper.substituteUse(ctx, stackAt);
|
||||
ItemsRemainingRenderHandler.set(player, new ItemStack(Blocks.TORCH), TORCH_PATTERN);
|
||||
ItemsRemainingRenderHandler.set(player, displayStack, TORCH_PATTERN);
|
||||
return did;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user