I think that fixed it
But now its conctantly crashing
This commit is contained in:
1 parent
11f1ce61b7
commit
776eec05b2
1 file changed
+3
-4
@@ -274,7 +274,7 @@ public class DrawCommand {
|
|||||||
int affected = 0;
|
int affected = 0;
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
if(pointup){
|
if(pointup){
|
||||||
offset=height;
|
offset=height+1;
|
||||||
}
|
}
|
||||||
BlockPos.Mutable mbpos = new BlockPos.Mutable(pos);
|
BlockPos.Mutable mbpos = new BlockPos.Mutable(pos);
|
||||||
|
|
||||||
@@ -286,16 +286,15 @@ public class DrawCommand {
|
|||||||
|
|
||||||
for (int x = -radius; x <= radius; ++x) {
|
for (int x = -radius; x <= radius; ++x) {
|
||||||
|
|
||||||
for (int y = -offset; y <= height+1-offset; ++y) {
|
for (int y = 2-offset; y <= height-offset+1; ++y) {
|
||||||
|
|
||||||
for (int z = -radius; z <= radius; ++z) {
|
for (int z = -radius; z <= radius; ++z) {
|
||||||
|
|
||||||
if (x*x+z*z>(radius/height*y)*(radius/height*y)) {
|
if (!(x*x+z*z<=(radius/height*y)*(radius/height*y))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
mbpos.set(pos.getX() + x, pos.getY() + y + offset, pos.getZ() + z);
|
mbpos.set(pos.getX() + x, pos.getY() + y + offset, pos.getZ() + z);
|
||||||
|
|
||||||
if (replacement == null || replacement.test(new CachedBlockPosition(world, mbpos, true))) {
|
if (replacement == null || replacement.test(new CachedBlockPosition(world, mbpos, true))) {
|
||||||
BlockEntity tileentity = world.getBlockEntity(mbpos);
|
BlockEntity tileentity = world.getBlockEntity(mbpos);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user