Skip to content

Commit

Permalink
fix(StoneworksFactory): fix choices reset on server restart
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Jan 6, 2025
1 parent 75fbecc commit ea1e7a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class StoneworksFactory(
override fun onNewInstance(menu: BlockMenu, b: Block) {
super.onNewInstance(menu, b)

if (b.hasData("choice0")) {
if (!b.hasData("choice0")) {
// new block, init choices
menu.setChoice(0, Choice.NONE)
menu.setChoice(1, Choice.NONE)
Expand Down

0 comments on commit ea1e7a3

Please sign in to comment.