9
0
mirror of https://github.com/Auxilor/Reforges.git synced 2025-12-25 09:59:27 +00:00

Fixed support for stacked reforge stones in the GUI

This commit is contained in:
_OfTeN_
2023-01-24 00:19:24 +03:00
parent 01d6cbc178
commit afdbf84fe1

View File

@@ -149,8 +149,7 @@ private class ActivatorSlot(
if (usedStone) {
val stone = reforgeStone[player]
stone?.itemMeta = null
stone?.amount = 0
stone?.amount = stone?.amount?.minus(1) ?: 0
if (plugin.configYml.getBool("gui.stone-sound.enabled")) {
player.playSound(
player.location,