From 60347658401d66e99853815903c0cbe5ee774c74 Mon Sep 17 00:00:00 2001 From: sovdee <10354869+sovdeeth@users.noreply.github.com> Date: Wed, 16 Oct 2024 20:04:25 -0400 Subject: [PATCH] 1.19.4+ --- src/main/java/ch/njol/skript/bukkitutil/ItemUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/njol/skript/bukkitutil/ItemUtils.java b/src/main/java/ch/njol/skript/bukkitutil/ItemUtils.java index 0c08d14e159..e447300d6ef 100644 --- a/src/main/java/ch/njol/skript/bukkitutil/ItemUtils.java +++ b/src/main/java/ch/njol/skript/bukkitutil/ItemUtils.java @@ -51,7 +51,7 @@ public class ItemUtils { public static final boolean HAS_RESET = Skript.methodExists(Damageable.class, "resetDamage"); public static final boolean CAN_CREATE_PLAYER_PROFILE = Skript.methodExists(Bukkit.class, "createPlayerProfile", UUID.class, String.class); // paper does not do texture lookups by default - public static final boolean REQUIRES_TEXTURE_LOOKUP = Skript.classExists("com.destroystokyo.paper.profile.PlayerProfile"); + public static final boolean REQUIRES_TEXTURE_LOOKUP = Skript.classExists("com.destroystokyo.paper.profile.PlayerProfile") && Skript.isRunningMinecraft(1, 19, 4); /** * Gets damage/durability of an item, or 0 if it does not have damage.