Not sure what the problem is, but this will fix disconnections:
Replace:Code:public int getFlag(int x, int y) { return plane[x * 10000 + y]; }
Untested, might not work because I'm not sure what the plane class consists of(I don't use project insanity).Code:public int getFlag(int x, int y) { return ((plane[x * 10000 + y]) > 0 ? (plane[x * 10000 + y]) : (1)); }