mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-27 13:54:39 +00:00
refactor: make Tile::getAABB return optional<AABB>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "../Headers/net.minecraft.world.phys.h"
|
||||
#include "../Headers/net.minecraft.h"
|
||||
#include "ButtonTile.h"
|
||||
#include <optional>
|
||||
#include "../Util/SoundTypes.h"
|
||||
|
||||
ButtonTile::ButtonTile(int id, bool sensitive)
|
||||
@@ -20,7 +21,7 @@ Icon* ButtonTile::getTexture(int face, int data) {
|
||||
return Tile::stone->getTexture(Facing::UP);
|
||||
}
|
||||
|
||||
AABB* ButtonTile::getAABB(Level* level, int x, int y, int z) { return NULL; }
|
||||
std::optional<AABB> ButtonTile::getAABB(Level* level, int x, int y, int z) { return std::nullopt; }
|
||||
|
||||
int ButtonTile::getTickDelay(Level* level) { return sensitive ? 30 : 20; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user