mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 19:49:54 +00:00
Simple Cleanup
This commit is contained in:
1 parent
09df969bcf
commit
e2fff11ea8
141 files changed
+545
-859
No files matched your search
@@ -93,9 +93,6 @@ public class ResupplyHandler implements IResupplyHandler {
|
||||
|
||||
/**
|
||||
* This tops off existing stacks in the player's inventory.
|
||||
*
|
||||
* @param player
|
||||
* @param itemstack
|
||||
*/
|
||||
private boolean topOffPlayerInventory(EntityPlayer player, ItemStack itemstack) {
|
||||
|
||||
@@ -112,11 +109,8 @@ public class ResupplyHandler implements IResupplyHandler {
|
||||
continue;
|
||||
|
||||
if (inventoryStack.isItemEqual(itemstack) && ItemStack.areItemStackTagsEqual(inventoryStack, itemstack)) {
|
||||
|
||||
inventoryStack.stackSize++;
|
||||
itemstack.stackSize--;
|
||||
if (itemstack.stackSize <= 0)
|
||||
itemstack = null;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user