Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-11-03 14:50:38 +01:00
Hotfix untracked entity
Dieser Commit ist enthalten in:
Ursprung
0084f764ba
Commit
8f84efb833
@ -271,6 +271,7 @@ public class BlockItemPackets1_14 extends BlockItemRewriter<Protocol1_13_2To1_14
|
|||||||
public void handle(PacketWrapper wrapper) throws Exception {
|
public void handle(PacketWrapper wrapper) throws Exception {
|
||||||
int entityId = wrapper.get(Type.VAR_INT, 0);
|
int entityId = wrapper.get(Type.VAR_INT, 0);
|
||||||
AbstractEntityType entityType = wrapper.user().get(EntityTracker.class).get(getProtocol()).getEntityType(entityId);
|
AbstractEntityType entityType = wrapper.user().get(EntityTracker.class).get(getProtocol()).getEntityType(entityId);
|
||||||
|
if (entityType == null) return; // TODO: Check why there might (?) be an untracked entity
|
||||||
|
|
||||||
if (entityType.isOrHasParent(EntityType1_14.EntityType.ABSTRACT_HORSE)) {
|
if (entityType.isOrHasParent(EntityType1_14.EntityType.ABSTRACT_HORSE)) {
|
||||||
wrapper.setId(0x3F);
|
wrapper.setId(0x3F);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren