Fixed #5974
This commit is contained in:
@@ -291,11 +291,12 @@ public class Schematics implements Loadable{
|
|||||||
/** Checks a schematic for deployment validity and adds it to the cache. */
|
/** Checks a schematic for deployment validity and adds it to the cache. */
|
||||||
private void checkLoadout(Schematic s, boolean validate){
|
private void checkLoadout(Schematic s, boolean validate){
|
||||||
Stile core = s.tiles.find(t -> t.block instanceof CoreBlock);
|
Stile core = s.tiles.find(t -> t.block instanceof CoreBlock);
|
||||||
|
if(core == null) return;
|
||||||
int cores = s.tiles.count(t -> t.block instanceof CoreBlock);
|
int cores = s.tiles.count(t -> t.block instanceof CoreBlock);
|
||||||
int maxSize = getMaxLaunchSize(core.block);
|
int maxSize = getMaxLaunchSize(core.block);
|
||||||
|
|
||||||
//make sure a core exists, and that the schematic is small enough.
|
//make sure a core exists, and that the schematic is small enough.
|
||||||
if(core == null || (validate && (s.width > maxSize || s.height > maxSize
|
if((validate && (s.width > maxSize || s.height > maxSize
|
||||||
|| s.tiles.contains(t -> t.block.buildVisibility == BuildVisibility.sandboxOnly || !t.block.unlocked()) || cores > 1))) return;
|
|| s.tiles.contains(t -> t.block.buildVisibility == BuildVisibility.sandboxOnly || !t.block.unlocked()) || cores > 1))) return;
|
||||||
|
|
||||||
//place in the cache
|
//place in the cache
|
||||||
|
|||||||
@@ -11,4 +11,4 @@ android.useAndroidX=true
|
|||||||
#used for slow jitpack builds; TODO see if this actually works
|
#used for slow jitpack builds; TODO see if this actually works
|
||||||
http.socketTimeout=80000
|
http.socketTimeout=80000
|
||||||
http.connectionTimeout=80000
|
http.connectionTimeout=80000
|
||||||
archash=29844ef3821ab99a0212dfb676463cb37d870a1b
|
archash=72627de9b81e7143af4ebe1d1f9d54099ade8fd3
|
||||||
|
|||||||
Reference in New Issue
Block a user