throw error in regular difficulty if tactic not unlocked

This commit is contained in:
Jon Eugster
2023-10-09 11:23:37 +02:00
committed by joneugster
parent 8730c2067c
commit 3a3471c615
4 changed files with 19 additions and 13 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ function PlayableLevel({impressum, setImpressum}) {
// if the user inventory changes, notify the server
useEffect(() => {
let leanClient = connection.getLeanClient(gameId)
leanClient.sendNotification('$/game/setInventory', {inventory: inventory, checkEnabled: difficulty > 0})
leanClient.sendNotification('$/game/setInventory', {inventory: inventory, difficulty: difficulty})
}, [inventory])
useEffect(() => {