mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-06-21 09:47:45 +02:00
Fix sneak-to-bulk-process (#1787)
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
+ if (newState == null) {
|
+ if (newState == null) {
|
||||||
+ return InteractionResult.PASS;
|
+ return InteractionResult.PASS;
|
||||||
+ }
|
+ }
|
||||||
+ if (level.purpurConfig.composterBulkProcess && player.isShiftKeyDown() && newState != state) {
|
+ if (level.purpurConfig.composterBulkProcess && player.isShiftKeyDown()) {
|
||||||
+ BlockState oldState;
|
+ BlockState oldState;
|
||||||
+ int oldCount, newCount, oldLevel, newLevel;
|
+ int oldCount, newCount, oldLevel, newLevel;
|
||||||
+ do {
|
+ do {
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
+ }
|
+ }
|
||||||
+ newCount = itemStack.getCount();
|
+ newCount = itemStack.getCount();
|
||||||
+ newLevel = newState.getValue(ComposterBlock.LEVEL);
|
+ newLevel = newState.getValue(ComposterBlock.LEVEL);
|
||||||
+ } while (newCount > 0 && (newCount != oldCount || newLevel != oldLevel || newState != oldState));
|
+ } while (newCount > 0 && (newCount != oldCount || newLevel != oldLevel));
|
||||||
+ }
|
+ }
|
||||||
+ // Purpur end - Sneak to bulk process composter
|
+ // Purpur end - Sneak to bulk process composter
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user