This commit is contained in:
gnembon committed 2021-05-13 02:00:05 -03:00
1 parent 65447f09ad
commit fb40120460
2 files changed
+2 -3

No files matched your search

@@ -142,7 +142,7 @@ public class FeatureGenerator
findFirst().map(Map.Entry::getValue).orElse(null);
}
synchronized public static <T extends FeatureConfig> StructureStart shouldStructureStartAt(ServerWorld world, BlockPos pos, StructureFeature<T> structure, boolean computeBox)
public static <T extends FeatureConfig> StructureStart shouldStructureStartAt(ServerWorld world, BlockPos pos, StructureFeature<T> structure, boolean computeBox)
{
long seed = world.getSeed();
ChunkGenerator generator = world.getChunkManager().getChunkGenerator();
@@ -184,8 +184,7 @@ public class FileArgument
}
catch (FileSystemNotFoundException | IOException fsnfe)
{
return null; // undr java 16 no file throws IOException - will take care of it later
//throw new ThrowStatement("Unable to open zip file: "+zipContainer, Throwables.IO_EXCEPTION);
throw new ThrowStatement("Unable to open zip file: "+zipContainer, Throwables.IO_EXCEPTION);
}
}
return zfs.getPath(resource+(isFolder?"/":type.extension));