Update to Forge 10.13.3.1388. Small fixes.
This commit is contained in:
@ -247,11 +247,11 @@ public class CraftInventory implements Inventory {
|
||||
}
|
||||
|
||||
private int firstPartial(ItemStack item) {
|
||||
ItemStack[] inventory = getContents();
|
||||
ItemStack filteredItem = CraftItemStack.asCraftCopy(item);
|
||||
if (item == null) {
|
||||
return -1;
|
||||
}
|
||||
ItemStack[] inventory = getContents();
|
||||
ItemStack filteredItem = CraftItemStack.asCraftCopy(item);
|
||||
for (int i = 0; i < inventory.length; i++) {
|
||||
ItemStack cItem = inventory[i];
|
||||
if (cItem != null && cItem.getAmount() < cItem.getMaxStackSize() && cItem.isSimilar(filteredItem)) {
|
||||
|
@ -103,7 +103,7 @@ public class CustomTimingsHandler
|
||||
{
|
||||
if ( timings.curTickTotal > 50000000 )
|
||||
{
|
||||
timings.violations += Math.ceil( timings.curTickTotal / 50000000 );
|
||||
timings.violations += Math.ceil( (double) timings.curTickTotal / 50000000 );
|
||||
}
|
||||
timings.curTickTotal = 0;
|
||||
timings.timingDepth = 0; // incase reset messes this up
|
||||
|
Reference in New Issue
Block a user