mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-24 04:57:34 +01:00
Fixed 1.12 error on player join
This commit is contained in:
parent
0aee327374
commit
f7e3894fff
@ -75,8 +75,8 @@ public class PlayerListener implements Listener {
|
||||
@EventHandler(priority = EventPriority.LOW)
|
||||
public void d(PlayerJoinEvent event) {
|
||||
PlayerData.load(event.getPlayer());
|
||||
|
||||
if(MMOItems.plugin.getConfig().getBoolean("auto-recipe-book"))
|
||||
|
||||
if (!MMOLib.plugin.getVersion().isBelowOrEqual(1, 12) && MMOItems.plugin.getConfig().getBoolean("auto-recipe-book"))
|
||||
event.getPlayer().discoverRecipes(MMOItems.plugin.getRecipes().getNamespacedKeys());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user