Skip to content

Commit 1a5f5de

Browse files
committed
You can now control the levitating entity when riding it
1 parent 36facb4 commit 1a5f5de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/com/minelittlepony/unicopia/client/gui/LevitatingItemActionWheel.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ public void tick(MinecraftClient client, Pony pony) {
4747
}
4848
if (client.targetedEntity instanceof LevitatingItemEntity target) {
4949
targetEntity = target;
50+
} else if (pony.asEntity().getRootVehicle() instanceof LevitatingItemEntity target) {
51+
targetEntity = target;
5052
} else {
5153
targetEntity = Trace.create(pony.asEntity(), 100, client.getRenderTickCounter().getTickDelta(false), e -> {
5254
return e instanceof LevitatingItemEntity;
5355
}).<LevitatingItemEntity>getEntity().orElse(null);
54-
5556
}
5657
if (targetEntity != null) {
5758
targetPosition = targetEntity.getPos();

0 commit comments

Comments
 (0)