Send PVP value as integer
This commit is contained in:
parent
d2b6d8dcb3
commit
f14d9baaa1
@ -66,7 +66,8 @@ defineExpose({
|
|||||||
|
|
||||||
function updateValue(event: Event) {
|
function updateValue(event: Event) {
|
||||||
let ev = event.target as HTMLInputElement
|
let ev = event.target as HTMLInputElement
|
||||||
mapEditor.updateProperty(ev.name as 'name' | 'width' | 'height' | 'pvp' | 'mapEffects', ev.value)
|
const value = ev.name === 'pvp' ? (ev.checked ? 1 : 0) : ev.value
|
||||||
|
mapEditor.updateProperty(ev.name as 'name' | 'width' | 'height' | 'pvp' | 'mapEffects', value)
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user