9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-25 09:59:20 +00:00

删除金锭检测,没必要

This commit is contained in:
halogly
2025-07-22 18:09:48 +08:00
parent e7a2386466
commit fa9feb3b8b

View File

@@ -46,12 +46,6 @@ public class EntityUtils {
&& tameable.getOwnerUniqueId() == player.getUniqueId();
}
public static boolean isPiglinWithGoldIngot(Entity entity, Item<ItemStack> item) {
return entity.getType() == EntityType.PIGLIN &&
item != null &&
item.vanillaId().equals(Key.of("minecraft:gold_ingot"));
}
public static boolean isHappyGhastRideable(Entity entity) {
if (!VersionHelper.isOrAbove1_21_6()) return false;
if (entity instanceof LivingEntity living && entity.getType() == EntityType.HAPPY_GHAST) {