Skip to content

Commit

Permalink
use paper lib instead
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAHuman-xD committed Mar 5, 2024
1 parent 791ccf3 commit 2ce0352
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import dev.sefiraat.sefilib.misc.RotationFace;
import dev.sefiraat.sefilib.misc.TransformationBuilder;
import io.papermc.lib.PaperLib;
import org.bukkit.util.Transformation;
import org.joml.Quaternionf;

Expand Down Expand Up @@ -145,7 +146,7 @@ public Transformation getTransformation() {
public Transformation getTransformation(boolean itemDisplay) {
// In 1.20+ the y axis of item displays are rotated by 180°
// This corrects the visuals by rotating again
if (itemDisplay && GeneralUtils.getMajorServerVersion() >= 20) {
if (itemDisplay && PaperLib.getMinecraftVersion() >= 20) {
return new Transformation(transformation.getTranslation(),
transformation.getLeftRotation(),
transformation.getScale(),
Expand Down

0 comments on commit 2ce0352

Please sign in to comment.