Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-03 14:50:30 +01:00
Fix item showing twice, one in the new slot (#359)
Dieser Commit ist enthalten in:
Ursprung
c214ca02e8
Commit
57d58db35e
@ -146,10 +146,10 @@ public class InventoryPackets {
|
|||||||
Item[] oldStack = wrapper.get(Type.ITEM_ARRAY, 0);
|
Item[] oldStack = wrapper.get(Type.ITEM_ARRAY, 0);
|
||||||
Item[] newStack = new Item[oldStack.length + 1];
|
Item[] newStack = new Item[oldStack.length + 1];
|
||||||
for (int i = 0; i < newStack.length; i++) {
|
for (int i = 0; i < newStack.length; i++) {
|
||||||
if (i > 3) {
|
if (i > 4) {
|
||||||
newStack[i] = oldStack[i - 1];
|
newStack[i] = oldStack[i - 1];
|
||||||
} else {
|
} else {
|
||||||
if (i != 3) { // Leave index 3 blank
|
if (i != 4) { // Leave index 3 blank
|
||||||
newStack[i] = oldStack[i];
|
newStack[i] = oldStack[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren