Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +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);
|
session.sendDownstreamPacket(dropPacket);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ItemStack item = session.getInventory().getItem(javaSlot);
|
ItemStack item = inventory.getItem(javaSlot);
|
||||||
if (item != null) {
|
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;
|
return;
|
||||||
} else { //clicking outside of inventory
|
} else { //clicking outside of inventory
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren