Disabled Patchouli
This commit is contained in:
parent
27183f5487
commit
cc3046a021
2 changed files with 7 additions and 9 deletions
|
@ -86,7 +86,8 @@ dependencies {
|
||||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||||
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
|
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
|
||||||
|
|
||||||
modApi "vazkii.patchouli:Patchouli:${project.patchouli_version}"
|
//Disabled, no 1.20.3/4 version available
|
||||||
|
// modApi "vazkii.patchouli:Patchouli:${project.patchouli_version}"
|
||||||
println "Using local BCLib: ${local_bclib}"
|
println "Using local BCLib: ${local_bclib}"
|
||||||
if (local_bclib) {
|
if (local_bclib) {
|
||||||
implementation(project(path: ":BCLib", configuration: 'dev'))
|
implementation(project(path: ":BCLib", configuration: 'dev'))
|
||||||
|
|
|
@ -8,7 +8,6 @@ import org.betterx.betterend.util.LangUtil;
|
||||||
import net.minecraft.ChatFormatting;
|
import net.minecraft.ChatFormatting;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.server.level.ServerPlayer;
|
|
||||||
import net.minecraft.world.InteractionHand;
|
import net.minecraft.world.InteractionHand;
|
||||||
import net.minecraft.world.InteractionResultHolder;
|
import net.minecraft.world.InteractionResultHolder;
|
||||||
import net.minecraft.world.entity.player.Player;
|
import net.minecraft.world.entity.player.Player;
|
||||||
|
@ -17,8 +16,6 @@ import net.minecraft.world.item.ItemStack;
|
||||||
import net.minecraft.world.item.TooltipFlag;
|
import net.minecraft.world.item.TooltipFlag;
|
||||||
import net.minecraft.world.level.Level;
|
import net.minecraft.world.level.Level;
|
||||||
|
|
||||||
import vazkii.patchouli.api.PatchouliAPI;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class GuideBookItem extends ModelProviderItem {
|
public class GuideBookItem extends ModelProviderItem {
|
||||||
|
@ -34,11 +31,11 @@ public class GuideBookItem extends ModelProviderItem {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public InteractionResultHolder<ItemStack> use(Level world, Player user, InteractionHand hand) {
|
public InteractionResultHolder<ItemStack> use(Level world, Player user, InteractionHand hand) {
|
||||||
//TODO: 1.19.3 Re-Enable once patchouli is available
|
//TODO: 1.20.3 Re-Enable once patchouli is available
|
||||||
if (!world.isClientSide && user instanceof ServerPlayer) {
|
// if (!world.isClientSide && user instanceof ServerPlayer) {
|
||||||
PatchouliAPI.get().openBookGUI((ServerPlayer) user, BOOK_ID);
|
// PatchouliAPI.get().openBookGUI((ServerPlayer) user, BOOK_ID);
|
||||||
return InteractionResultHolder.success(user.getItemInHand(hand));
|
// return InteractionResultHolder.success(user.getItemInHand(hand));
|
||||||
}
|
// }
|
||||||
return InteractionResultHolder.consume(user.getItemInHand(hand));
|
return InteractionResultHolder.consume(user.getItemInHand(hand));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue