1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Requested Changes

This commit is contained in:
JustAHuman-xD 2023-06-28 06:43:42 -05:00
parent 4f55622d35
commit 1f407b7a86

View File

@ -131,8 +131,8 @@ public class AncientPedestal extends SimpleSlimefunItem<BlockDispenseHandler> im
}
private boolean testArmorStand(@Nullable Entity n) {
if (n instanceof ArmorStand armorStand && armorStand.isValid()) {
String customName = armorStand.getCustomName();
if (n instanceof ArmorStand && n.isValid()) {
String customName = n.getCustomName();
return customName != null && customName.startsWith(ITEM_PREFIX);
} else {
return false;