mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-25 15:11:20 +01:00
!Fixed MMOCore block compatibility
This commit is contained in:
parent
baffab4288
commit
8cceb9e41a
@ -31,6 +31,7 @@ public class MMOCoreMMOLoader extends MMOLoader {
|
||||
*/
|
||||
public MMOCoreMMOLoader() {
|
||||
MMOCore.plugin.loadManager.registerLoader(this);
|
||||
MMOCore.plugin.mineManager.registerBlockType(block -> MMOItems.plugin.getCustomBlocks().isMushroomBlock(block.getType()) ? new MMOItemsBlockType(block) : null);
|
||||
|
||||
/*
|
||||
* register extra conditions for MMOItems crafting.
|
||||
@ -77,20 +78,19 @@ public class MMOCoreMMOLoader extends MMOLoader {
|
||||
|
||||
if (config.getKey().equals("minemiblock"))
|
||||
return new MineMIBlockExperienceSource(profession, config);
|
||||
|
||||
|
||||
if (config.getKey().equalsIgnoreCase("smeltmmoitem"))
|
||||
return new SmeltMMOItemExperienceSource(profession, config);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public BlockType loadBlockType(MMOLineConfig config) {
|
||||
|
||||
if (config.getKey().equalsIgnoreCase("miblock") || config.getKey().equals("mmoitemsblock")|| config.getKey().equals("mmoitem")|| config.getKey().equals("mmoitems"))
|
||||
if (config.getKey().equalsIgnoreCase("miblock") || config.getKey().equals("mmoitemsblock") || config.getKey().equals("mmoitem") || config.getKey().equals("mmoitems"))
|
||||
return new MMOItemsBlockType(config);
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user