Section: allow empty sections

This commit is contained in:
Matthias Schiffer 2019-05-25 16:56:25 +02:00
parent 212a8dcaea
commit 3c92f58110
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
2 changed files with 13 additions and 6 deletions

View file

@ -1,5 +1,5 @@
/*
Copyright (c) 2015-2018, Matthias Schiffer <mschiffer@universe-factory.net>
Copyright (c) 2015-2019, Matthias Schiffer <mschiffer@universe-factory.net>
All rights reserved.
Redistribution and use in source and binary forms, with or without
@ -72,7 +72,7 @@ public:
size_t getY() const { return Y; };
virtual const Resource::BlockType * getBlockStateAt(size_t x, size_t y, size_t z) const = 0;
virtual const Resource::BlockType * getBlockStateAt(size_t x, size_t y, size_t z) const;
uint8_t getBlockLightAt(size_t x, size_t y, size_t z) const {
if (!blockLight)