Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-26 16:12:43 +01:00
fix item rewrites at to server
Dieser Commit ist enthalten in:
Ursprung
89099a6f0d
Commit
f3710c4fcf
@ -393,8 +393,9 @@ public class BlockItemPackets1_14 extends BlockItemRewriter<Protocol1_13_2To1_14
|
|||||||
handler(new PacketHandler() {
|
handler(new PacketHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void handle(PacketWrapper wrapper) throws Exception {
|
public void handle(PacketWrapper wrapper) throws Exception {
|
||||||
Item item = handleItemToServer(wrapper.get(Type.FLAT_VAR_INT_ITEM, 0));
|
Item item = wrapper.get(Type.FLAT_VAR_INT_ITEM, 0);
|
||||||
wrapper.set(Type.FLAT_VAR_INT_ITEM, 0, item);
|
item = handleItemToServer(item);
|
||||||
|
wrapper.set(Type.FLAT_VAR_INT_ITEM, 0, item);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -673,10 +674,10 @@ public class BlockItemPackets1_14 extends BlockItemRewriter<Protocol1_13_2To1_14
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Item handleItemToServer(Item i) {
|
public Item handleItemToServer(Item item) {
|
||||||
Item item = super.handleItemToServer(i);
|
|
||||||
if (item == null) return null;
|
if (item == null) return null;
|
||||||
item.setIdentifier(getNewItemId(item.getIdentifier()));
|
item.setIdentifier(getNewItemId(item.getIdentifier()));
|
||||||
|
item = super.handleItemToServer(item);
|
||||||
|
|
||||||
CompoundTag tag;
|
CompoundTag tag;
|
||||||
if ((tag = item.getTag()) != null) {
|
if ((tag = item.getTag()) != null) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren