Skip to content

Commit

Permalink
fix(core-bukkit): actually return the potion effect type
Browse files Browse the repository at this point in the history
  • Loading branch information
Misat11 committed Jun 9, 2024
1 parent e4cb79a commit b523732
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public BukkitPotionEffectTypeRegistry() {
if (BukkitFeature.POTION_EFFECT_TYPE_REGISTRY_SPIGOT.isSupported()) {
var item = BukkitRegistry.tryObtainItem(Registry.EFFECT, BukkitPotionEffectType::new, location);
if (item != null) {
return null;
return item;
}

// try bukkit name (deprecated, TODO: prepare shop/config migration scripts and remove)
Expand All @@ -67,7 +67,7 @@ public BukkitPotionEffectTypeRegistry() {
} else if (BukkitFeature.POTION_EFFECT_TYPE_REGISTRY.isSupported()) {
var item = BukkitRegistry.tryObtainItem(Registry.POTION_EFFECT_TYPE, BukkitPotionEffectType::new, location);
if (item != null) {
return null;
return item;
}

// try bukkit name (deprecated, TODO: prepare shop/config migration scripts and remove)
Expand Down

0 comments on commit b523732

Please sign in to comment.