mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 00:15:56 +02:00
fix bad handling for middle click
This commit is contained in:
parent
8e7153a746
commit
eeaa87ba98
2 changed files with 6 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ plugins {
|
|||
}
|
||||
|
||||
group = "xyz.alexcrea"
|
||||
version = "1.19.1"
|
||||
version = "1.20.0"
|
||||
|
||||
val isDevBuild = System.getenv("SMALL_COMMIT_HASH") != null
|
||||
val isPreRelease = System.getenv("IS_GITHUB_PRERELEASE") == "true"
|
||||
|
|
|
|||
|
|
@ -197,6 +197,9 @@ class AnvilResultListener : Listener {
|
|||
result
|
||||
)
|
||||
) return
|
||||
else if(player.gameMode != GameMode.CREATIVE) {
|
||||
return
|
||||
}
|
||||
|
||||
// Finally, we add the item to the player
|
||||
if (slotDestination.type == SlotType.CURSOR) {
|
||||
|
|
@ -351,6 +354,8 @@ class AnvilResultListener : Listener {
|
|||
|
||||
inventory.setItem(ANVIL_OUTPUT_SLOT, null)
|
||||
|
||||
} else if(player.gameMode != GameMode.CREATIVE) {
|
||||
return false
|
||||
}
|
||||
|
||||
// Finally, we add the item to the player
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue