mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-08 16:56:07 +00:00
Flora and ores on Fabric
This commit is contained in:
@@ -298,7 +298,7 @@ public class Vector3 implements Cloneable {
|
||||
public Vector3 subtract(int x, int y, int z) {
|
||||
this.x -= x;
|
||||
this.y -= y;
|
||||
this.z = -z;
|
||||
this.z -= z;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ public class CavePopulator implements TerraBlockPopulator {
|
||||
Location mut = l.clone();
|
||||
MaterialData orig = handle.getType(l.getBlock());
|
||||
do mut.subtract(0, 1, 0);
|
||||
while(handle.getType(mut.getBlock()).equals(orig));
|
||||
while(mut.getY() > 0 && handle.getType(mut.getBlock()).equals(orig));
|
||||
try {
|
||||
if(template.getShift().get(entry.getValue()).contains(mut.getBlock().getType())) {
|
||||
handle.setBlockData(mut.getBlock(), shiftStorage.computeIfAbsent(entry.getValue(), MaterialData::createBlockData), false);
|
||||
|
||||
Reference in New Issue
Block a user