mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-03 09:26:29 +00:00
refactor: remove AABB::newTemp when not returned
This commit is contained in:
@@ -733,9 +733,9 @@ void ConsoleSchematicFile::generateSchematicFile(
|
||||
}
|
||||
tag.put(L"TileEntities", tileEntitiesTag);
|
||||
|
||||
AABB* bb = AABB::newTemp(xStart, yStart, zStart, xEnd, yEnd, zEnd);
|
||||
AABB bb(xStart, yStart, zStart, xEnd, yEnd, zEnd);
|
||||
std::vector<std::shared_ptr<Entity> >* entities =
|
||||
level->getEntities(nullptr, bb);
|
||||
level->getEntities(nullptr, &bb);
|
||||
ListTag<CompoundTag>* entitiesTag = new ListTag<CompoundTag>(L"entities");
|
||||
|
||||
for (AUTO_VAR(it, entities->begin()); it != entities->end(); ++it) {
|
||||
|
||||
Reference in New Issue
Block a user