3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-10-03 08:41:05 +02:00

Fix error with shit-click on offhand slot on 1.8 servers (#2419)

Dieser Commit ist enthalten in:
MrMicky 2021-04-03 09:09:00 +02:00 committet von GitHub
Ursprung 29d6b55592
Commit 9ccd8bff33
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -69,7 +69,7 @@ public class BukkitInventoryQuickMoveProvider extends InventoryQuickMoveProvider
if (windowId == 0) {
// windowId is always 0 for player inventory.
// This has almost definitely something to do with the offhand slot.
if (slotId >= 36 && slotId <= 44) {
if (slotId >= 36 && slotId <= 45) {
int protocolId = Via.getAPI().getServerVersion().lowestSupportedVersion();
// this seems to be working just fine.
if (protocolId == ProtocolVersion.v1_8.getVersion()) {