More 1.8.8 compatibility

This commit is contained in:
fullwall 2023-01-04 23:17:45 +08:00
parent ffef42efb7
commit d9e7ec4ca3

View File

@ -595,7 +595,7 @@ public class ShopTrait extends Trait {
ctx.getMenu().transition(new NPCShopContentsEditor(shop));
}
@MenuSlot(slot = { 0, 2 }, material = Material.OAK_SIGN, amount = 1)
@MenuSlot(slot = { 0, 2 }, compatMaterial = { "OAK_SIGN", "SIGN" }, amount = 1)
public void onPermissionChange(InventoryMenuSlot slot, CitizensInventoryClickEvent event) {
ctx.getMenu().transition(InputMenus.stringSetter(shop::getRequiredPermission, shop::setPermission));
}