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

@@ -8,27 +8,23 @@ import net.minecraft.util.ResourceLocation;
import tconstruct.world.entity.Crystal;
@SideOnly(Side.CLIENT)
public class CrystalRender extends RenderLiving
{
public class CrystalRender extends RenderLiving {
/** The creeper model. */
private ModelBase creeperModel = new CrystalModelSmall();
public CrystalRender()
{
public CrystalRender() {
super(new CrystalModelSmall(), 0.5F);
}
/**
* A method used to render a creeper's powered form as a pass model.
*/
protected int renderCreeperPassModel (Crystal par1EntityCreeper, int par2, float par3)
{
protected int renderCreeperPassModel(Crystal par1EntityCreeper, int par2, float par3) {
return -1;
}
protected int func_77061_b (Crystal par1EntityCreeper, int par2, float par3)
{
protected int func_77061_b(Crystal par1EntityCreeper, int par2, float par3) {
return -1;
}
@@ -45,27 +41,23 @@ public class CrystalRender extends RenderLiving
* Returns an ARGB int color back. Args: entityLiving, lightBrightness,
* partialTickTime
*/
protected int getColorMultiplier (EntityLiving par1EntityLiving, float par2, float par3)
{
protected int getColorMultiplier(EntityLiving par1EntityLiving, float par2, float par3) {
return super.getColorMultiplier(par1EntityLiving, par2, par3);
}
/**
* Queries whether should render the specified pass or not.
*/
protected int shouldRenderPass (EntityLiving par1EntityLiving, int par2, float par3)
{
protected int shouldRenderPass(EntityLiving par1EntityLiving, int par2, float par3) {
return this.renderCreeperPassModel((Crystal) par1EntityLiving, par2, par3);
}
protected int inheritRenderPass (EntityLiving par1EntityLiving, int par2, float par3)
{
protected int inheritRenderPass(EntityLiving par1EntityLiving, int par2, float par3) {
return this.func_77061_b((Crystal) par1EntityLiving, par2, par3);
}
@Override
protected ResourceLocation getEntityTexture (Entity par1Entity)
{
protected ResourceLocation getEntityTexture(Entity par1Entity) {
return texture;
}