make Schem Fom start to end work better
All checks were successful
/ Auto-Build-App (push) Successful in 1m33s

This commit is contained in:
pietru 2025-04-29 10:37:41 +02:00
parent 032d553038
commit dab6d8fa11

View file

@ -30,6 +30,8 @@ public class Schematic implements Json.Serializable {
Vector3 b = new Vector3(end.getGlobalX(),end.getGlobalY(),end.getGlobalZ());
BoundingBox bb = new BoundingBox(a,b);
bb.update();
bb.max.add(1);
bb.update();
bb.getDimensions(size);
blockStates=new String[(int) (size.x*size.y*size.z)];
start=block_util.getBlockPositionFromGlobalXYZ(zone,(int)bb.min.x,(int)bb.min.y,(int)bb.min.z);