Spring Cleaning (#127)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
koolkrafter5andgithub-actions[bot] authored and GitHub committed 2026-05-12 20:52:29 +02:00
1 parent 1544c1bf0d
commit 3b2b31f733
413 files changed
+9272 -17658

No files matched your search

@@ -25,21 +25,21 @@ public class TESocket extends TEInventory {
}
@Override
public void readFromNBT(NBTTagCompound par1NBTTagCompound) {
super.readFromNBT(par1NBTTagCompound);
public void readFromNBT(NBTTagCompound tag) {
super.readFromNBT(tag);
resultID = par1NBTTagCompound.getInteger("resultID");
resultDamage = par1NBTTagCompound.getInteger("resultDamage");
isActive = par1NBTTagCompound.getBoolean("isActive");
resultID = tag.getInteger("resultID");
resultDamage = tag.getInteger("resultDamage");
isActive = tag.getBoolean("isActive");
}
@Override
public void writeToNBT(NBTTagCompound par1NBTTagCompound) {
super.writeToNBT(par1NBTTagCompound);
public void writeToNBT(NBTTagCompound tag) {
super.writeToNBT(tag);
par1NBTTagCompound.setInteger("resultID", resultID);
par1NBTTagCompound.setInteger("resultDamage", resultDamage);
par1NBTTagCompound.setBoolean("isActive", isActive);
tag.setInteger("resultID", resultID);
tag.setInteger("resultDamage", resultDamage);
tag.setBoolean("isActive", isActive);
}
@Override
@@ -77,16 +77,11 @@ public class TESocket extends TEInventory {
}
if (intData.length == 3) {
for (int i = 0; i < 1; i++) {
if (intData[i * 3 + 2] != 0) {
ItemStack is = new ItemStack(
Item.getItemById(intData[i * 3]),
intData[i * 3 + 2],
intData[i * 3 + 1]);
inv[i] = is;
} else {
inv[i] = null;
}
if (intData[2] != 0) {
ItemStack is = new ItemStack(Item.getItemById(intData[0]), intData[2], intData[1]);
inv[0] = is;
} else {
inv[0] = null;
}
}
}