Add victory & death screens

This commit is contained in:
Martin Prokoph
2025-01-15 19:09:05 +01:00
parent f5297dfb66
commit 3c609340f2
7 changed files with 62 additions and 33 deletions

View File

@@ -32,7 +32,8 @@ public:
for (Block block : registeredBlocks) {
if (block.getEncoding() == encoding) return block;
}
return AIR;
if (encoding == '/' || encoding == '\\' || encoding == '|' || encoding == 'o') return AIR; // The static player defined in the level should not be part of the world
return Block(Identifier("decoration", string(1, encoding)), encoding, BlockSettingsBuilder().nonSolid().build()); // Keep other characters as decoration
}
private: