Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 14:30:17 +01:00
Fix bug when dropping items from an open inventory
Dieser Commit ist enthalten in:
Ursprung
0daa4451ec
Commit
ab71bf0727
@ -120,9 +120,9 @@ public class InventoryActionDataTranslator {
|
||||
session.sendDownstreamPacket(dropPacket);
|
||||
}
|
||||
}
|
||||
ItemStack item = session.getInventory().getItem(javaSlot);
|
||||
ItemStack item = inventory.getItem(javaSlot);
|
||||
if (item != null) {
|
||||
session.getInventory().setItem(javaSlot, new ItemStack(item.getId(), item.getAmount() - dropAmount, item.getNbt()));
|
||||
inventory.setItem(javaSlot, new ItemStack(item.getId(), item.getAmount() - dropAmount, item.getNbt()));
|
||||
}
|
||||
return;
|
||||
} else { //clicking outside of inventory
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren