Fixed 2 backend issues

This commit is contained in:
Auxilor
2021-07-16 14:48:00 +02:00
committed by Auxilor
parent e6bdf192ed
commit d6d0e4d3b3
2 changed files with 7 additions and 6 deletions

View File

@@ -18,6 +18,7 @@ dependencies {
compileOnly 'fr.neatmonster:nocheatplus:3.16.1-SNAPSHOT'
compileOnly 'com.github.jiangdashao:matrix-api-repo:317d4635fd'
compileOnly 'com.gmail.nossr50.mcMMO:mcMMO:2.1.157'
compileOnly 'me.clip:placeholderapi:2.10.9'
// CombatLogX V10 + NewbieHelper Expansion
compileOnly 'com.SirBlobman.combatlogx:CombatLogX-API:10.0.0.0-SNAPSHOT'

View File

@@ -42,7 +42,7 @@ public class ShapedRecipeListener extends PluginDependent<EcoPlugin> implements
return;
}
if (!EcoPlugin.LOADED_ECO_PLUGINS.contains(recipe.getKey().getNamespace())) {
if (!EcoPlugin.getPluginNames().contains(recipe.getKey().getNamespace())) {
return;
}
@@ -72,7 +72,7 @@ public class ShapedRecipeListener extends PluginDependent<EcoPlugin> implements
return;
}
if (!EcoPlugin.LOADED_ECO_PLUGINS.contains(recipe.getKey().getNamespace())) {
if (!EcoPlugin.getPluginNames().contains(recipe.getKey().getNamespace())) {
return;
}
@@ -106,7 +106,7 @@ public class ShapedRecipeListener extends PluginDependent<EcoPlugin> implements
return;
}
if (!EcoPlugin.LOADED_ECO_PLUGINS.contains(recipe.getKey().getNamespace())) {
if (!EcoPlugin.getPluginNames().contains(recipe.getKey().getNamespace())) {
return;
}
@@ -200,7 +200,7 @@ public class ShapedRecipeListener extends PluginDependent<EcoPlugin> implements
return;
}
if (EcoPlugin.LOADED_ECO_PLUGINS.contains(recipe.getKey().getNamespace())) {
if (EcoPlugin.getPluginNames().contains(recipe.getKey().getNamespace())) {
return;
}
@@ -223,7 +223,7 @@ public class ShapedRecipeListener extends PluginDependent<EcoPlugin> implements
return;
}
if (EcoPlugin.LOADED_ECO_PLUGINS.contains(recipe.getKey().getNamespace())) {
if (EcoPlugin.getPluginNames().contains(recipe.getKey().getNamespace())) {
return;
}
@@ -244,7 +244,7 @@ public class ShapedRecipeListener extends PluginDependent<EcoPlugin> implements
*/
@EventHandler
public void preventLearningDisplayedRecipes(@NotNull final PlayerRecipeDiscoverEvent event) {
if (!EcoPlugin.LOADED_ECO_PLUGINS.contains(event.getRecipe().getNamespace())) {
if (!EcoPlugin.getPluginNames().contains(event.getRecipe().getNamespace())) {
return;
}