mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Requested Changes
This commit is contained in:
parent
4f55622d35
commit
1f407b7a86
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user