Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 00:22:51 +01:00
Rewrite arrow metadata and remove 0x10 metadata flag in 1.12.2 -> 1.13
Dieser Commit ist enthalten in:
Ursprung
1f51ee7233
Commit
8bf230e057
@ -31,8 +31,8 @@ public class MetadataRewriter {
|
|||||||
int data = (int) metadata.getValue();
|
int data = (int) metadata.getValue();
|
||||||
metadata.setValue(Protocol1_13_1To1_13.getNewBlockStateId(data));
|
metadata.setValue(Protocol1_13_1To1_13.getNewBlockStateId(data));
|
||||||
}
|
}
|
||||||
if(type.is(EntityType.ITEM)){
|
if (type.isOrHasParent(EntityType.ABSTRACT_ARROW) && metadata.getId() >= 7) {
|
||||||
|
metadata.setId(metadata.getId() + 1); // New shooter UUID
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
metadatas.remove(metadata);
|
metadatas.remove(metadata);
|
||||||
|
@ -79,6 +79,11 @@ public class MetadataRewriter {
|
|||||||
if (metadata.getId() >= 9)
|
if (metadata.getId() >= 9)
|
||||||
metadatas.remove(metadata); // Remove
|
metadatas.remove(metadata); // Remove
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (metadata.getId() == 0) {
|
||||||
|
metadata.setValue((byte) ((byte) metadata.getValue() & ~0x10)); // Previously unused, now swimming
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Boat has changed
|
// TODO: Boat has changed
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
metadatas.remove(metadata);
|
metadatas.remove(metadata);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren