Skip to content

Commit

Permalink
1.19.4+
Browse files Browse the repository at this point in the history
  • Loading branch information
sovdeeth committed Oct 17, 2024
1 parent 3a08dcb commit 6034765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/bukkitutil/ItemUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6034765

Please sign in to comment.