mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Fixed botania armor models not resetting the "using a bow" state. Closes #1569
This commit is contained in:
1 parent
458464c6eb
commit
cd4936f6c1
4 files changed
+5
-1
No files matched your search
@@ -246,6 +246,7 @@ public class ModelArmorElementium extends ModelBiped {
|
||||
ItemStack itemstack = player.inventory.getCurrentItem();
|
||||
heldItemRight = itemstack != null ? 1 : 0;
|
||||
|
||||
aimedBow = false;
|
||||
if (itemstack != null && player.getItemInUseCount() > 0) {
|
||||
EnumAction enumaction = itemstack.getItemUseAction();
|
||||
|
||||
|
||||
@@ -175,12 +175,13 @@ public class ModelArmorManasteel extends ModelBiped {
|
||||
ItemStack itemstack = player.inventory.getCurrentItem();
|
||||
heldItemRight = itemstack != null ? 1 : 0;
|
||||
|
||||
aimedBow = false;
|
||||
if (itemstack != null && player.getItemInUseCount() > 0) {
|
||||
EnumAction enumaction = itemstack.getItemUseAction();
|
||||
|
||||
if (enumaction == EnumAction.block)
|
||||
heldItemRight = 3;
|
||||
else if (enumaction == EnumAction.bow)
|
||||
else if(enumaction == EnumAction.bow)
|
||||
aimedBow = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -176,6 +176,7 @@ public class ModelArmorManaweave extends ModelBiped {
|
||||
ItemStack itemstack = player.inventory.getCurrentItem();
|
||||
heldItemRight = itemstack != null ? 1 : 0;
|
||||
|
||||
aimedBow = false;
|
||||
if (itemstack != null && player.getItemInUseCount() > 0) {
|
||||
EnumAction enumaction = itemstack.getItemUseAction();
|
||||
|
||||
|
||||
@@ -267,6 +267,7 @@ public class ModelArmorTerrasteel extends ModelBiped {
|
||||
ItemStack itemstack = player.inventory.getCurrentItem();
|
||||
heldItemRight = itemstack != null ? 1 : 0;
|
||||
|
||||
aimedBow = false;
|
||||
if (itemstack != null && player.getItemInUseCount() > 0) {
|
||||
EnumAction enumaction = itemstack.getItemUseAction();
|
||||
|
||||
|
||||
Reference in new issue
Block a user