Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-07 00:30:19 +01:00
Fix shields not being configurable
Dieser Commit ist enthalten in:
Ursprung
0992c74351
Commit
d72b7fc4df
@ -241,6 +241,7 @@ public class WorldPackets {
|
|||||||
// Write item in hand
|
// Write item in hand
|
||||||
Item item = Item.getItem(Protocol1_9TO1_8.getHandItem(wrapper.user()));
|
Item item = Item.getItem(Protocol1_9TO1_8.getHandItem(wrapper.user()));
|
||||||
// Blocking patch
|
// Blocking patch
|
||||||
|
if (ViaVersion.getConfig().isShieldBlocking()) {
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
if (Material.getMaterial(item.getId()) != null) {
|
if (Material.getMaterial(item.getId()) != null) {
|
||||||
if (Material.getMaterial(item.getId()).name().endsWith("SWORD")) {
|
if (Material.getMaterial(item.getId()).name().endsWith("SWORD")) {
|
||||||
@ -256,6 +257,7 @@ public class WorldPackets {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
wrapper.write(Type.ITEM, item);
|
wrapper.write(Type.ITEM, item);
|
||||||
|
|
||||||
wrapper.write(Type.BYTE, (byte) 0);
|
wrapper.write(Type.BYTE, (byte) 0);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren