mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
Updated to rename revision 02
This commit is contained in:
@@ -114,7 +114,7 @@ public class TileEntityFurnace extends TileEntity implements IInventory {
|
||||
NBTTagCompound nbttagcompound1 = new NBTTagCompound();
|
||||
|
||||
nbttagcompound1.setByte("Slot", (byte) i);
|
||||
this.items[i].b(nbttagcompound1);
|
||||
this.items[i].save(nbttagcompound1);
|
||||
nbttaglist.add(nbttagcompound1);
|
||||
}
|
||||
}
|
||||
@@ -210,7 +210,7 @@ public class TileEntityFurnace extends TileEntity implements IInventory {
|
||||
if (this.items[0] == null) {
|
||||
return false;
|
||||
} else {
|
||||
ItemStack itemstack = FurnaceRecipes.getInstance().a(this.items[0].getItem().id);
|
||||
ItemStack itemstack = FurnaceRecipes.getInstance().getResult(this.items[0].getItem().id);
|
||||
|
||||
// CraftBukkit - consider resultant count instead of current count
|
||||
return itemstack == null ? false : (this.items[2] == null ? true : (!this.items[2].doMaterialsMatch(itemstack) ? false : (this.items[2].count + itemstack.count <= this.getMaxStackSize() && this.items[2].count < this.items[2].getMaxStackSize() ? true : this.items[2].count + itemstack.count <= itemstack.getMaxStackSize())));
|
||||
@@ -219,7 +219,7 @@ public class TileEntityFurnace extends TileEntity implements IInventory {
|
||||
|
||||
public void burn() {
|
||||
if (this.canBurn()) {
|
||||
ItemStack itemstack = FurnaceRecipes.getInstance().a(this.items[0].getItem().id);
|
||||
ItemStack itemstack = FurnaceRecipes.getInstance().getResult(this.items[0].getItem().id);
|
||||
|
||||
// CraftBukkit start
|
||||
CraftItemStack source = new CraftItemStack(this.items[0]);
|
||||
|
Reference in New Issue
Block a user