mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
16 lines
806 B
Diff
16 lines
806 B
Diff
--- a/net/minecraft/world/item/DebugStickItem.java
|
|
+++ b/net/minecraft/world/item/DebugStickItem.java
|
|
@@ -1,3 +_,4 @@
|
|
+// mc-dev import
|
|
package net.minecraft.world.item;
|
|
|
|
import java.util.Collection;
|
|
@@ -51,7 +_,7 @@
|
|
public boolean handleInteraction(
|
|
Player player, BlockState stateClicked, LevelAccessor accessor, BlockPos pos, boolean shouldCycleState, ItemStack debugStack
|
|
) {
|
|
- if (!player.canUseGameMasterBlocks()) {
|
|
+ if (!player.canUseGameMasterBlocks() && !(player.getAbilities().instabuild && player.getBukkitEntity().hasPermission("minecraft.debugstick")) && !player.getBukkitEntity().hasPermission("minecraft.debugstick.always")) { // Spigot
|
|
return false;
|
|
} else {
|
|
Holder<Block> blockHolder = stateClicked.getBlockHolder();
|