X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2Fapp.cpp;h=1e82cab998b789e6a9be2fc62723defc2e012128;hb=1c2994622a6b73f90cbd3ec9c09ffb4d7724cab4;hp=98c7286a7970916c70a7b107b90b5e0b301f08de;hpb=75ebb9101c7aec9c16ef418b822c39e81889f66f;p=blank.git diff --git a/src/app/app.cpp b/src/app/app.cpp index 98c7286..1e82cab 100644 --- a/src/app/app.cpp +++ b/src/app/app.cpp @@ -98,6 +98,8 @@ void HeadlessApplication::Run() { void HeadlessApplication::Loop(int dt) { env.counter.EnterFrame(); + HandleEvents(); + if (!HasState()) return; Update(dt); CommitStates(); if (!HasState()) return; @@ -335,8 +337,10 @@ void AssetLoader::LoadBlockTypes(const std::string &set_name, BlockTypeRegistry } else if (name == "texture") { in.ReadString(tex_name); type.texture = tex_index.GetID(tex_name); - } else if (name == "color") { - in.ReadVec(type.color); + } else if (name == "rgb_mod") { + in.ReadVec(type.rgb_mod); + } else if (name == "hsl_mod") { + in.ReadVec(type.hsl_mod); } else if (name == "outline") { in.ReadVec(type.outline_color); } else if (name == "label") {