Skip to content

Commit

Permalink
Sync 1.19.4 class (no code changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSchlueter committed Oct 15, 2023
1 parent 24e42e1 commit 8ef2c8e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,14 @@ public void update() {
getData().getBrightness().getSkyLight()));
}

// entity scale
// entity scale AND MORE!
display.setTransformation(new Transformation(
getData().getTranslation(),
new Quaternionf(),
getData().getScale(),
new Quaternionf()));
new Quaternionf())
);


// entity shadow
display.setShadowRadius(getData().getShadowRadius());
Expand Down Expand Up @@ -164,9 +166,9 @@ public boolean show(@NotNull final Player player) {
}

ServerPlayer serverPlayer = ((CraftPlayer) player).getHandle();

// TODO: cache player protocol version
final var protocolVersion = FancyHologramsPlugin.get().isUsingViaVersion() ? Via.getAPI().getPlayerVersion(player) : MINIMUM_PROTOCOL_VERSION;

if (protocolVersion < MINIMUM_PROTOCOL_VERSION) {
return false;
}
Expand Down

0 comments on commit 8ef2c8e

Please sign in to comment.