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

@@ -5,8 +5,7 @@ import net.minecraft.client.model.*;
import net.minecraft.entity.Entity;
@SideOnly(Side.CLIENT)
public class SlimeModel extends ModelBase
{
public class SlimeModel extends ModelBase {
/** The slime's bodies, both the inside box and the outside box */
ModelRenderer slimeBodies;
@@ -19,13 +18,11 @@ public class SlimeModel extends ModelBase
/** The slime's mouth */
ModelRenderer slimeMouth;
public SlimeModel(int par1)
{
public SlimeModel(int par1) {
this.slimeBodies = new ModelRenderer(this, 0, par1);
this.slimeBodies.addBox(-4.0F, 16.0F, -4.0F, 8, 8, 8);
if (par1 > 0)
{
if (par1 > 0) {
this.slimeBodies = new ModelRenderer(this, 0, par1);
this.slimeBodies.addBox(-3.0F, 17.0F, -3.0F, 6, 6, 6);
this.slimeRightEye = new ModelRenderer(this, 32, 0);
@@ -41,13 +38,11 @@ public class SlimeModel extends ModelBase
* Sets the models various rotation angles then renders the model.
*/
@Override
public void render (Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7)
{
public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7) {
this.setRotationAngles(par2, par3, par4, par5, par6, par7, par1Entity);
this.slimeBodies.render(par7);
if (this.slimeRightEye != null)
{
if (this.slimeRightEye != null) {
this.slimeRightEye.render(par7);
this.slimeLeftEye.render(par7);
this.slimeMouth.render(par7);