variables bug with forceload
I realized that when an entity is in a forceload area with a variable of type save=true after the server restarts its variable gets deleted and becomes undefined.
(I used this little rabbit for my tests ^^)
test:
Type: rabbit Skills:
- setvariable{var=caster.VariableA;type=INTEGER;value="10";save=true;s=CASTER} @self ~onSpawn
- message{m="<#AAAAAA>» test a <caster.var.VariableA>"} @NearestPlayer{r=50} ~onTimer:10
- variableadd{var=caster.VariableA;amount=1} ~onInteract
Display: "&6Test"
Options:
Despawn: persistent
PreventOtherDrops: true
Silent: true
KnockbackResistance: 1
PreventItemPickup: true
PreventRandomEquipment: true