Fix JABBA-related issues with crafting station slots (#54)

* Fix shift-merging tools voiding items

fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/11392>

* Change 0-sized ItemStacks into null stacks in crafting station attached slots

Fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10425>

* Update buildscript

* spotlessApply
This commit is contained in:
Raven Szewczyk authored and GitHub committed 2022-09-22 20:51:23 +02:00
1 parent 18bfeaff32
commit 39be06c23b
571 files changed
+25959 -28223

No files matched your search

@@ -2,36 +2,34 @@ package tconstruct.armor.model;
import net.minecraft.client.model.ModelBiped;
public class HiddenPlayerModel extends ModelBiped
{
public HiddenPlayerModel(float size, int slot)
{
public class HiddenPlayerModel extends ModelBiped {
public HiddenPlayerModel(float size, int slot) {
super(size, 0, 64, 32);
if (slot != 0) //Head
if (slot != 0) // Head
{
this.bipedHead.isHidden = true;
this.bipedHeadwear.isHidden = true;
}
if (slot != 1 && slot != 5) //Chest, belt
if (slot != 1 && slot != 5) // Chest, belt
{
this.bipedBody.isHidden = true;
}
if (slot != 2 && slot != 3) //Legs, shoes
if (slot != 2 && slot != 3) // Legs, shoes
{
this.bipedRightLeg.isHidden = true;
this.bipedLeftLeg.isHidden = true;
}
if (slot != 4) //Gloves
if (slot != 4) // Gloves
{
this.bipedRightArm.isHidden = true;
this.bipedLeftArm.isHidden = true;
}
if (slot != 6) //Ears
if (slot != 6) // Ears
{
this.bipedEars.isHidden = true;
}
if (slot != 7) //Cloak
if (slot != 7) // Cloak
{
this.bipedCloak.isHidden = true;
}