mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-23 05:15:48 +00:00
refactor: begin unglobbing std::vector
This commit is contained in:
@@ -166,7 +166,7 @@ void TripWireTile::checkPressed(Level *level, int x, int y, int z)
|
||||
bool shouldBePressed = false;
|
||||
|
||||
ThreadStorage *tls = (ThreadStorage *)TlsGetValue(Tile::tlsIdxShape);
|
||||
vector<std::shared_ptr<Entity> > *entities = level->getEntities(nullptr, AABB::newTemp(x + tls->xx0, y + tls->yy0, z + tls->zz0, x + tls->xx1, y + tls->yy1, z + tls->zz1));
|
||||
std::vector<std::shared_ptr<Entity> > *entities = level->getEntities(nullptr, AABB::newTemp(x + tls->xx0, y + tls->yy0, z + tls->zz0, x + tls->xx1, y + tls->yy1, z + tls->zz1));
|
||||
if (!entities->empty())
|
||||
{
|
||||
shouldBePressed = true;
|
||||
|
||||
Reference in New Issue
Block a user