update to v2.0.2
This commit is contained in:
@@ -18,16 +18,19 @@ public abstract class GUISlot {
|
||||
if(section == null) return new EmptySlot();
|
||||
GUISlotType guiSlotType = GUISlotType.getByName(section.getString("type"));
|
||||
switch (guiSlotType) {
|
||||
case ITEM_SLOT -> {
|
||||
case ITEM_SLOT : {
|
||||
return new ItemSlot(section);
|
||||
}
|
||||
case DRAGON_SLOT -> {
|
||||
case DRAGON_SLOT : {
|
||||
return new DragonSlot(section);
|
||||
}
|
||||
case PAGE_PREV, PAGE_NEXT, PAGE_TIP, TIP -> {
|
||||
case PAGE_PREV :
|
||||
case PAGE_NEXT :
|
||||
case PAGE_TIP :
|
||||
case TIP : {
|
||||
return new TipSlot(guiSlotType, section);
|
||||
}
|
||||
case PAGE_JUMP -> {
|
||||
case PAGE_JUMP : {
|
||||
return new PageJumpSlot(section);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user