Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 13:30:06 +01:00
Fixed Creative not having infinite items.
Dieser Commit ist enthalten in:
Ursprung
53b32f43cc
Commit
3c5632de31
@ -266,7 +266,16 @@ public class ItemInWorldManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (itemstack != null && !result) {
|
if (itemstack != null && !result) {
|
||||||
|
int j1 = itemstack.getData();
|
||||||
|
int k1 = itemstack.count;
|
||||||
|
|
||||||
result = itemstack.placeItem(entityhuman, world, i, j, k, l);
|
result = itemstack.placeItem(entityhuman, world, i, j, k, l);
|
||||||
|
|
||||||
|
// The item count should not decrement in Creative mode.
|
||||||
|
if (this.b()) {
|
||||||
|
itemstack.b(j1);
|
||||||
|
itemstack.count = k1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we have 'true' and no explicit deny *or* an explicit allow -- run the item part of the hook
|
// If we have 'true' and no explicit deny *or* an explicit allow -- run the item part of the hook
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren