mirror of
https://github.com/GeyserExtensionists/GeyserUtils.git
synced 2025-12-19 15:09:24 +00:00
oof
This commit is contained in:
@@ -427,6 +427,13 @@ public class GeyserUtils implements Extension {
|
||||
}
|
||||
}
|
||||
session.sendUpstreamPacket(animateEntityPacket);
|
||||
} else if (customPacket instanceof CustomEntityPacket customEntityPacket) {
|
||||
if (!LOADED_ENTITY_DEFINITIONS.containsKey(customEntityPacket.getIdentifier())) {
|
||||
return;
|
||||
}
|
||||
|
||||
Cache<Integer, String> cache = CUSTOM_ENTITIES.get(session);
|
||||
cache.put(customEntityPacket.getEntityId(), customEntityPacket.getIdentifier());
|
||||
} else if (customPacket instanceof CameraInstructionCustomPayloadPacket cameraInstructionPacket) {
|
||||
if (cameraInstructionPacket.getInstruction() instanceof SetInstruction instruction) {
|
||||
session.camera().sendCameraPosition(Converter.serializeSetInstruction(instruction));
|
||||
|
||||
Reference in New Issue
Block a user