mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-27 19:19:07 +00:00
Updates & fixes
This commit is contained in:
@@ -28,6 +28,7 @@ import it.unimi.dsi.fastutil.ints.IntSets;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.block.data.Waterlogged;
|
||||
import org.bukkit.block.data.type.Leaves;
|
||||
|
||||
import java.util.Arrays;
|
||||
@@ -510,4 +511,8 @@ public class B {
|
||||
|
||||
return bt.toArray(new String[0]);
|
||||
}
|
||||
|
||||
public static boolean isWaterLogged(BlockData b) {
|
||||
return (b instanceof Waterlogged) && ((Waterlogged)b).isWaterlogged();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.volmit.iris.util.math.KochanekBartelsInterpolation;
|
||||
import com.volmit.iris.util.math.M;
|
||||
import com.volmit.iris.util.math.PathInterpolation;
|
||||
import com.volmit.iris.util.matter.Matter;
|
||||
import com.volmit.iris.util.matter.MatterCavern;
|
||||
import com.volmit.iris.util.parallel.BurstExecutor;
|
||||
import com.volmit.iris.util.parallel.HyperLock;
|
||||
import com.volmit.iris.util.parallel.MultiBurst;
|
||||
@@ -506,4 +507,8 @@ public class Mantle {
|
||||
public MantleChunk getChunk(Chunk e) {
|
||||
return getChunk(e.getX(), e.getZ());
|
||||
}
|
||||
|
||||
public void deleteChunkSlice(int x, int z, Class<?> c) {
|
||||
getChunk(x, z).deleteSlices(c);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -241,4 +241,15 @@ public class MantleChunk {
|
||||
public List<IrisFeaturePositional> getFeatures() {
|
||||
return features;
|
||||
}
|
||||
|
||||
public void deleteSlices(Class<?> c) {
|
||||
for(int i = 0; i < sections.length(); i++)
|
||||
{
|
||||
Matter m = sections.get(i);
|
||||
if(m != null && m.hasSlice(c))
|
||||
{
|
||||
m.deleteSlice(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user