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

@@ -3,8 +3,7 @@ package tconstruct.mechworks.model;
import net.minecraft.client.model.*;
import net.minecraft.entity.Entity;
public class ModelPullcart extends ModelBase
{
public class ModelPullcart extends ModelBase {
ModelRenderer BackPanel;
ModelRenderer FrontPanel;
ModelRenderer RightPanel;
@@ -47,8 +46,7 @@ public class ModelPullcart extends ModelBase
ModelRenderer WheelLeft11;
ModelRenderer WheelLeft12;
public ModelPullcart()
{
public ModelPullcart() {
textureWidth = 128;
textureHeight = 64;
@@ -219,8 +217,7 @@ public class ModelPullcart extends ModelBase
}
@Override
public void render (Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5, entity);
BackPanel.render(f5);
@@ -266,17 +263,14 @@ public class ModelPullcart extends ModelBase
WheelLeft12.render(f5);
}
private void setRotation (ModelRenderer model, float x, float y, float z)
{
private void setRotation(ModelRenderer model, float x, float y, float z) {
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
@Override
public void setRotationAngles (float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
{
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) {
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
}
}