Archiviert
13
0

Fixed an exploit allowing item duplication upon death

Dieser Commit ist enthalten in:
Dinnerbone 2011-03-08 20:54:52 +00:00
Ursprung e0d8c1d7ac
Commit 7de9091036

Datei anzeigen

@ -94,12 +94,14 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
for (int i = 0; i < inventory.a.length; ++i) {
if (inventory.a[i] != null) {
loot.add(new CraftItemStack(inventory.a[i]));
inventory.a[i] = null;
}
}
for (int i = 0; i < inventory.b.length; ++i) {
if (inventory.b[i] != null) {
loot.add(new CraftItemStack(inventory.b[i]));
inventory.a[i] = null;
}
}