Updated to 1.16.2-rc2

This commit is contained in:
Sebastian Hartte
2020-08-11 16:20:31 +02:00
parent c59a6e34eb
commit 68a02ed64b
68 changed files with 278 additions and 205 deletions
@@ -424,8 +424,8 @@ public abstract class AEBaseContainer extends ScreenHandler {
if (Platform.itemComparisons().isSameItem(t, tis)) {
int maxSize = t.getMaxCount();
if (maxSize > d.getMaxStackAmount()) {
maxSize = d.getMaxStackAmount();
if (maxSize > d.getMaxItemCount()) {
maxSize = d.getMaxItemCount();
}
int placeable = maxSize - t.getCount();
@@ -468,8 +468,8 @@ public abstract class AEBaseContainer extends ScreenHandler {
if (Platform.itemComparisons().isSameItem(t, tis)) {
int maxSize = t.getMaxCount();
if (maxSize > d.getMaxStackAmount()) {
maxSize = d.getMaxStackAmount();
if (maxSize > d.getMaxItemCount()) {
maxSize = d.getMaxItemCount();
}
int placeable = maxSize - t.getCount();
@@ -497,8 +497,8 @@ public abstract class AEBaseContainer extends ScreenHandler {
}
} else {
int maxSize = tis.getMaxCount();
if (maxSize > d.getMaxStackAmount()) {
maxSize = d.getMaxStackAmount();
if (maxSize > d.getMaxItemCount()) {
maxSize = d.getMaxItemCount();
}
final ItemStack tmp = tis.copy();
@@ -964,25 +964,25 @@ public abstract class AEBaseContainer extends ScreenHandler {
ItemStack testB = isA.isEmpty() ? ItemStack.EMPTY : isA.copy();
// can put some back?
if (!testA.isEmpty() && testA.getCount() > a.getMaxStackAmount()) {
if (!testA.isEmpty() && testA.getCount() > a.getMaxItemCount()) {
if (!testB.isEmpty()) {
return;
}
final int totalA = testA.getCount();
testA.setCount(a.getMaxStackAmount());
testA.setCount(a.getMaxItemCount());
testB = testA.copy();
testB.setCount(totalA - testA.getCount());
}
if (!testB.isEmpty() && testB.getCount() > b.getMaxStackAmount()) {
if (!testB.isEmpty() && testB.getCount() > b.getMaxItemCount()) {
if (!testA.isEmpty()) {
return;
}
final int totalB = testB.getCount();
testB.setCount(b.getMaxStackAmount());
testB.setCount(b.getMaxItemCount());
testA = testB.copy();
testA.setCount(totalB - testA.getCount());