mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-12 09:30:19 -07:00
Fixed removing full stack of seeds when planting them
This commit is contained in:
parent
bdb014711c
commit
a88c98bc9a
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ class SeedlingListener : InteractionListener {
|
|||
|
||||
val seedling = getSeedling(seed.id)
|
||||
if (seedling == -1) return false
|
||||
if (!removeItem(player, seed) || !removeItem(player, pot)) return true
|
||||
if (!removeItem(player, seed.id) || !removeItem(player, pot)) return true
|
||||
addItem(player, seedling)
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue