Begin remigrate to Shiroha
uhm
This commit is contained in:
@@ -15,9 +15,9 @@ index 4c9ea818be83ed3c4dacc762f4d0e8c0f177cd19..9fe5ee1c5578be6f6c5ad9a58e10669a
|
||||
this.player.sendSpawnProtectionMessage(pos);
|
||||
} else if (this.awaitingPositionFromClient == null && (level.mayInteract(this.player, pos) || passthroughSignInteraction)) {
|
||||
// Paper end - Allow using signs inside spawn protection
|
||||
+ if (!moe.monnairealms.camellia.config.modules.fixes.ItemMultitaskConfig.enabled) { // Camellia - Add config for item multitask
|
||||
+ if (!moe.monnairealms.camellia.config.modules.fixes.ItemMultitaskConfig.enabled) { // Shiroha - Add config for item multitask
|
||||
this.player.stopUsingItem(); // CraftBukkit - SPIGOT-4706
|
||||
+ } // Camellia - Add config for item multitask
|
||||
+ } // Shiroha - Add config for item multitask
|
||||
InteractionResult interactionResult = this.player.gameMode.useItemOn(this.player, level, itemStack, hand, blockHit);
|
||||
if (interactionResult.consumesAction()) {
|
||||
CriteriaTriggers.ANY_BLOCK_USE.trigger(this.player, blockHit.getBlockPos(), itemStack);
|
||||
@@ -27,13 +27,13 @@ index 4c9ea818be83ed3c4dacc762f4d0e8c0f177cd19..9fe5ee1c5578be6f6c5ad9a58e10669a
|
||||
// CraftBukkit end
|
||||
- if (this.player.getInventory().getSelectedSlot() != packet.getSlot() && this.player.getUsedItemHand() == InteractionHand.MAIN_HAND) {
|
||||
- this.player.stopUsingItem();
|
||||
+ // Camellia start - Add item multitask config
|
||||
+ // Shiroha start - Add item multitask config
|
||||
+ if (!moe.monnairealms.camellia.config.modules.fixes.ItemMultitaskConfig.enabled) {
|
||||
+ if (this.player.getInventory().getSelectedSlot() != packet.getSlot() && this.player.getUsedItemHand() == InteractionHand.MAIN_HAND) {
|
||||
+ this.player.stopUsingItem();
|
||||
+ }
|
||||
}
|
||||
+ // Camellia end
|
||||
+ // Shiroha end
|
||||
|
||||
this.player.getInventory().setSelectedSlot(packet.getSlot());
|
||||
this.player.resetLastActionTime();
|
||||
|
||||
Reference in New Issue
Block a user