Gusarich / housify

Housify is an advanced programming language and compiler specifically designed for Hypixel Housing
MIT License
3 stars 0 forks source link

Extra `player.` in generated stat placeholders #43

Closed Gusarich closed 3 months ago

Gusarich commented 3 months ago

The following house:

house Counter {
    global counter: int = 0;
    player counter: int = 0;

    handle JOIN {
        global.counter = global.counter + 1;
        player.counter = player.counter + 1;
    }
}

Produce result with one of the actions being:

{
    "kind": "CHANGE_PLAYER_STAT",
    "mode": "SET",
    "stat": "$$3",
    "value": "%stat.player/player.counter%",
}

where %stat.player/player.counter% is definitely invalid stat placeholder in this case.