Gerold55 / laptop

Introducing the MineTest Laptop Mod
Other
26 stars 14 forks source link

Themes not saving after powering off computer #14

Closed v-rob closed 6 years ago

v-rob commented 6 years ago

The computer theme changes back to the default theme after the computer is turned off and turned back on.

Gerold55 commented 6 years ago

I've suggested a login screen that matches the metadata of your PC/laptop so that when you login to any computer you'll be loading your "account"

bell07 commented 6 years ago

I see it on the v2.0 laptop only. on_punch is defined as

        node.name = "laptop:laptop_open"
        minetest.set_node(pos, node)

The API is not used. Please use instead

        local os = laptop.os_get(pos)
        os:power_off( "laptop:laptop_open")
Gerold55 commented 6 years ago

Issue resolved.

Gerold55 commented 6 years ago

@bell07 can you edit the laptop v2 and add the fix to it? So the theme saves on it when left.