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

@@ -1,43 +1,34 @@
package tconstruct.plugins.nei;
import codechicken.lib.gui.GuiDraw;
import java.util.ArrayList;
import java.util.List;
import org.lwjgl.opengl.GL11;
import net.minecraft.util.StatCollector;
import org.lwjgl.opengl.GL11;
import tconstruct.library.TConstructRegistry;
import tconstruct.library.crafting.CastingRecipe;
import tconstruct.library.crafting.LiquidCasting;
import codechicken.lib.gui.GuiDraw;
public class RecipeHandlerCastingBasin extends RecipeHandlerCastingBase
{
public class RecipeHandlerCastingBasin extends RecipeHandlerCastingBase {
@Override
public String getRecipeName ()
{
public String getRecipeName() {
return StatCollector.translateToLocal("tconstruct.nei.castingbasin");
}
@Override
public void drawBackground (int recipe)
{
public void drawBackground(int recipe) {
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiDraw.changeTexture(this.getGuiTexture());
GuiDraw.drawTexturedModalRect(30, 0, 0, 62, 112, 55);
}
@Override
public List<CastingRecipe> getCastingRecipes ()
{
public List<CastingRecipe> getCastingRecipes() {
LiquidCasting casting = TConstructRegistry.getBasinCasting();
if (casting == null)
{
if (casting == null) {
return new ArrayList<CastingRecipe>();
}
return casting.getCastingRecipes();
}
}