mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 21:20:06 +00:00
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:
1 parent
18bfeaff32
commit
39be06c23b
571 files changed
+25959
-28223
No files matched your search
@@ -4,21 +4,16 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import tconstruct.library.modifier.*;
|
||||
|
||||
public class ModExtraModifier extends ItemModifier
|
||||
{
|
||||
public ModExtraModifier(ItemStack[] items, String dataKey)
|
||||
{
|
||||
public class ModExtraModifier extends ItemModifier {
|
||||
public ModExtraModifier(ItemStack[] items, String dataKey) {
|
||||
super(items, 0, dataKey);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean canModify (ItemStack tool, ItemStack[] recipe)
|
||||
{
|
||||
if (tool != null && tool.getItem() instanceof IModifyable)
|
||||
{
|
||||
protected boolean canModify(ItemStack tool, ItemStack[] recipe) {
|
||||
if (tool != null && tool.getItem() instanceof IModifyable) {
|
||||
NBTTagCompound tags = this.getModifierTag(tool);
|
||||
if (tags.getBoolean(key))
|
||||
{
|
||||
if (tags.getBoolean(key)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -27,8 +22,7 @@ public class ModExtraModifier extends ItemModifier
|
||||
}
|
||||
|
||||
@Override
|
||||
public void modify (ItemStack[] recipe, ItemStack input)
|
||||
{
|
||||
public void modify(ItemStack[] recipe, ItemStack input) {
|
||||
NBTTagCompound tags = this.getModifierTag(input);
|
||||
tags.setBoolean(key, true);
|
||||
int modifiers = tags.getInteger("Modifiers");
|
||||
@@ -36,7 +30,5 @@ public class ModExtraModifier extends ItemModifier
|
||||
tags.setInteger("Modifiers", modifiers);
|
||||
}
|
||||
|
||||
public void addMatchingEffect (ItemStack tool)
|
||||
{
|
||||
}
|
||||
public void addMatchingEffect(ItemStack tool) {}
|
||||
}
|
||||
Reference in new issue
Block a user