mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-12 14:50:03 +01:00
Readd dropped CauldronInteraction hunk
This commit is contained in:
parent
ac9ac5e7ea
commit
0895318159
@ -38,7 +38,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- public boolean canUse(final S source) {
|
- public boolean canUse(final S source) {
|
||||||
+ // Paper start
|
+ // CraftBukkit start
|
||||||
+ public synchronized boolean canUse(final S source) {
|
+ public synchronized boolean canUse(final S source) {
|
||||||
+ if (source instanceof CommandSourceStack) {
|
+ if (source instanceof CommandSourceStack) {
|
||||||
+ try {
|
+ try {
|
||||||
@ -48,7 +48,7 @@
|
|||||||
+ ((CommandSourceStack) source).currentCommand.remove(Thread.currentThread()); // Paper - Thread Safe Vanilla Command permission checking
|
+ ((CommandSourceStack) source).currentCommand.remove(Thread.currentThread()); // Paper - Thread Safe Vanilla Command permission checking
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // CraftBukkit end
|
||||||
return requirement.test(source);
|
return requirement.test(source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -227,7 +227,7 @@
|
|||||||
) {
|
) {
|
||||||
return (InteractionResult)(isUnderWater(level, pos)
|
return (InteractionResult)(isUnderWater(level, pos)
|
||||||
? InteractionResult.CONSUME
|
? InteractionResult.CONSUME
|
||||||
@@ -269,50 +_,65 @@
|
@@ -269,53 +_,68 @@
|
||||||
hand,
|
hand,
|
||||||
filledStack,
|
filledStack,
|
||||||
Blocks.POWDER_SNOW_CAULDRON.defaultBlockState().setValue(LayeredCauldronBlock.LEVEL, Integer.valueOf(3)),
|
Blocks.POWDER_SNOW_CAULDRON.defaultBlockState().setValue(LayeredCauldronBlock.LEVEL, Integer.valueOf(3)),
|
||||||
@ -298,4 +298,8 @@
|
|||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
stack.remove(DataComponents.DYED_COLOR);
|
stack.remove(DataComponents.DYED_COLOR);
|
||||||
player.awardStat(Stats.CLEAN_ARMOR);
|
player.awardStat(Stats.CLEAN_ARMOR);
|
||||||
LayeredCauldronBlock.lowerFillLevel(state, level, pos);
|
- LayeredCauldronBlock.lowerFillLevel(state, level, pos);
|
||||||
|
+ // LayeredCauldronBlock.lowerFillLevel(state, level, pos); // CraftBukkit
|
||||||
|
}
|
||||||
|
|
||||||
|
return InteractionResult.SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user