Fix slabs

This commit is contained in:
Daniel Mills 2020-10-17 13:29:07 -04:00
parent 564c79c411
commit 4dcdbdec3a
2 changed files with 2 additions and 10 deletions

View File

@ -388,7 +388,7 @@ public class PostMasterPatcher extends IrisPostBlockFilter
if(!cancel && isAirOrWater(x, c, z, currentPostX, currentPostZ, currentData)) if(!cancel && isAirOrWater(x, c, z, currentPostX, currentPostZ, currentData))
{ {
Slab slab = (Slab) d.getBlockData(); Slab slab = (Slab) d.getBlockData().clone();
slab.setType(Type.TOP); slab.setType(Type.TOP);
setPostBlock(x, c, z, d, currentPostX, currentPostZ, currentData); setPostBlock(x, c, z, d, currentPostX, currentPostZ, currentData);
} }

View File

@ -17,11 +17,9 @@ import com.volmit.iris.gen.provisions.ProvisionBukkit;
import com.volmit.iris.gui.PregenGui; import com.volmit.iris.gui.PregenGui;
import io.papermc.lib.PaperLib; import io.papermc.lib.PaperLib;
import lombok.Getter;
public class PregenJob implements Listener public class PregenJob implements Listener
{ {
@Getter
private World world; private World world;
private int size; private int size;
private int total; private int total;
@ -419,10 +417,4 @@ public class PregenJob implements Listener
return new String[] {"Progress: " + Form.pc(Math.min((double) genned / (double) total, 1.0), 0), "Generated: " + Form.f(genned) + " Chunks", "Remaining: " + Form.f(total - genned) + " Chunks", "Elapsed: " + Form.duration((long) s.getMilliseconds(), 2), "Estimate: " + ((genned >= total - 5 ? "Any second..." : s.getMilliseconds() < 25000 ? "Calculating..." : Form.duration(eta, 2))), "ChunksMS: " + Form.duration(1000D / cps, 2), "Chunks/s: " + Form.f(cps, 1), return new String[] {"Progress: " + Form.pc(Math.min((double) genned / (double) total, 1.0), 0), "Generated: " + Form.f(genned) + " Chunks", "Remaining: " + Form.f(total - genned) + " Chunks", "Elapsed: " + Form.duration((long) s.getMilliseconds(), 2), "Estimate: " + ((genned >= total - 5 ? "Any second..." : s.getMilliseconds() < 25000 ? "Calculating..." : Form.duration(eta, 2))), "ChunksMS: " + Form.duration(1000D / cps, 2), "Chunks/s: " + Form.f(cps, 1),
}; };
} }
public void progressMCA(Color color, int x, int z, double pct)
{
// TODO Auto-generated method stub
}
} }