minor tweak to cuboid

This commit is contained in:
Unknown
2019-11-27 07:18:22 -05:00
parent 3624c62ce3
commit cbc59639c3
@@ -20,6 +20,10 @@ public class Cuboid extends Renderer {
this(pos, new BlockPos(1, 1, 1), new Vector4f(1.0f, 1.0f, 1.0f, 1.0f));
}
public Cuboid(BlockPos start, BlockPos end, Vector4f color) {
this(start, new Vec3i(end.getX() - start.getX(), end.getY() - start.getY(), end.getZ() - start.getZ()), color);
}
public Cuboid(BlockPos start, Vec3i size, Vector4f color) {
this.start = start;
this.size = size;