mirror of
https://github.com/Auxilor/Reforges.git
synced 2026-01-06 15:51:32 +00:00
Fixed reforge stone bug
This commit is contained in:
@@ -308,11 +308,15 @@ object ReforgeGUI {
|
||||
ReforgeStatus.INVALID_ITEM
|
||||
} else {
|
||||
val reforgeStone = stone.reforgeStone
|
||||
if (reforgeStone != null && reforgeStone.canBeAppliedTo(item)) {
|
||||
cost = reforgeStone.stonePrice.toDouble()
|
||||
ReforgeStatus.ALLOW_STONE
|
||||
} else {
|
||||
if (reforgeStone == null) {
|
||||
ReforgeStatus.ALLOW
|
||||
} else {
|
||||
if (reforgeStone.canBeAppliedTo(item)) {
|
||||
cost = reforgeStone.stonePrice.toDouble()
|
||||
ReforgeStatus.ALLOW_STONE
|
||||
} else {
|
||||
ReforgeStatus.INVALID_ITEM
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user