Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-26 16:12:43 +01:00
Handle shulker meta index change
Dieser Commit ist enthalten in:
Ursprung
8a67061d32
Commit
e8da5554dc
@ -111,6 +111,13 @@ public class EntityPackets1_17 extends EntityRewriter<Protocol1_16_4To1_17> {
|
|||||||
mapEntity(Entity1_17Types.EntityType.GLOW_SQUID, Entity1_17Types.EntityType.SQUID).jsonName("Glow Squid");
|
mapEntity(Entity1_17Types.EntityType.GLOW_SQUID, Entity1_17Types.EntityType.SQUID).jsonName("Glow Squid");
|
||||||
mapEntity(Entity1_17Types.EntityType.GLOW_ITEM_FRAME, Entity1_17Types.EntityType.ITEM_FRAME);
|
mapEntity(Entity1_17Types.EntityType.GLOW_ITEM_FRAME, Entity1_17Types.EntityType.ITEM_FRAME);
|
||||||
|
|
||||||
|
registerMetaHandler().filter(Entity1_17Types.EntityType.SHULKER).handle(meta -> {
|
||||||
|
if (meta.getIndex() >= 17) {
|
||||||
|
meta.getData().setId(meta.getIndex() + 1); // TODO Handle attachment pos?
|
||||||
|
}
|
||||||
|
return meta.getData();
|
||||||
|
});
|
||||||
|
|
||||||
registerMetaHandler().filter(7).removed(); // Ticks frozen
|
registerMetaHandler().filter(7).removed(); // Ticks frozen
|
||||||
registerMetaHandler().handle(meta -> {
|
registerMetaHandler().handle(meta -> {
|
||||||
if (meta.getIndex() > 7) {
|
if (meta.getIndex() > 7) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren