refactor: make Tile::getAABB return optional<AABB>
This commit is contained in:
1 parent
78b5255224
commit
7158fd398f
71 files changed
+205
-139
No files matched your search
@@ -6,6 +6,8 @@
|
||||
#include "../Headers/net.minecraft.h"
|
||||
#include "../Headers/net.minecraft.world.h"
|
||||
#include "BasePressurePlateTile.h"
|
||||
#include <optional>
|
||||
#include "Util/AABB.h"
|
||||
|
||||
BasePressurePlateTile::BasePressurePlateTile(int id, const std::wstring& tex,
|
||||
Material* material)
|
||||
@@ -38,8 +40,8 @@ int BasePressurePlateTile::getTickDelay(Level* level) {
|
||||
return SharedConstants::TICKS_PER_SECOND;
|
||||
}
|
||||
|
||||
AABB* BasePressurePlateTile::getAABB(Level* level, int x, int y, int z) {
|
||||
return NULL;
|
||||
std::optional<AABB> BasePressurePlateTile::getAABB(Level* level, int x, int y, int z) {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
bool BasePressurePlateTile::isSolidRender(bool isServerLevel) { return false; }
|
||||
|
||||
Reference in new issue
Block a user