Add files via upload
Re-added Patchouli integration
This commit is contained in:
parent
03c39d4a69
commit
ec50c13ed2
1 changed files with 3 additions and 2 deletions
|
@ -15,6 +15,7 @@ import ru.bclib.items.ModelProviderItem;
|
|||
import ru.betterend.BetterEnd;
|
||||
import ru.betterend.registry.EndItems;
|
||||
import ru.betterend.util.LangUtil;
|
||||
import vazkii.patchouli.api.PatchouliAPI;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
@ -32,8 +33,8 @@ public class GuideBookItem extends ModelProviderItem {
|
|||
@Override
|
||||
public InteractionResultHolder<ItemStack> use(Level world, Player user, InteractionHand hand) {
|
||||
if (!world.isClientSide && user instanceof ServerPlayer) {
|
||||
//TODO: reanable Patchouli once it is available for 1.18
|
||||
//PatchouliAPI.get().openBookGUI((ServerPlayer) user, BOOK_ID);
|
||||
|
||||
PatchouliAPI.get().openBookGUI((ServerPlayer) user, BOOK_ID);
|
||||
return InteractionResultHolder.success(user.getItemInHand(hand));
|
||||
}
|
||||
return InteractionResultHolder.consume(user.getItemInHand(hand));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue