mirror of
https://github.com/GeyserExtensionists/GeyserUtils.git
synced 2025-12-20 15:39:32 +00:00
fix: got rid of the black particles & hitbox bug by replacing area effect clouds with interaction entities
This commit is contained in:
@@ -116,6 +116,11 @@ public class JavaAddEntityTranslatorReplace extends PacketTranslator<Clientbound
|
|||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} else if (packet.getType() == EntityType.AREA_EFFECT_CLOUD) {
|
||||||
|
/* todo this fix gets rid of aec's in general, we should see if it's a meg aec somehow */
|
||||||
|
definition = Registries.ENTITY_DEFINITIONS.get(EntityType.INTERACTION);
|
||||||
|
entity = definition.factory().create(session, packet.getEntityId(), session.getEntityCache().getNextEntityId().incrementAndGet(),
|
||||||
|
packet.getUuid(), definition, position, motion, yaw, pitch, headYaw);
|
||||||
} else {
|
} else {
|
||||||
entity = definition.factory().create(session, packet.getEntityId(), session.getEntityCache().getNextEntityId().incrementAndGet(),
|
entity = definition.factory().create(session, packet.getEntityId(), session.getEntityCache().getNextEntityId().incrementAndGet(),
|
||||||
packet.getUuid(), definition, position, motion, yaw, pitch, headYaw);
|
packet.getUuid(), definition, position, motion, yaw, pitch, headYaw);
|
||||||
|
|||||||
Reference in New Issue
Block a user