} else if ("lake".equals(template)) {
boolean useMaterial = false;
if (isObject) {
useMaterial = genObject.has("useMaterial") ? genObject.get("useMaterial").getAsBoolean() : useMaterial;
}
WorldGenAdvLakes r = new WorldGenAdvLakes(resList, useMaterial ? matList : null);
if (isObject) {
if (genObject.has("outlineWithStone"))
r.outlineBlock = genObject.get("outlineWithStone").getAsBoolean() ?
new WeightedRandomBlock(Blocks.stone, 0) : null;
if (genObject.has("outlineBlock"))