9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 19:49:06 +00:00
This commit is contained in:
cyberpwn
2021-08-13 08:24:50 -04:00
parent 7ace88ae0d
commit f6ab374718
4 changed files with 19 additions and 11 deletions

View File

@@ -136,6 +136,11 @@ public class Mantle {
throw new RuntimeException("The Mantle is closed");
}
if(y < 0)
{
return;
}
Matter matter = get((x >> 4) >> 5, (z >> 4) >> 5)
.getOrCreate((x >> 4) & 31, (z >> 4) & 31)
.getOrCreate(y >> 4);
@@ -165,6 +170,11 @@ public class Mantle {
throw new RuntimeException("The Mantle is closed");
}
if(y < 0)
{
return null;
}
return (T) get((x >> 4) >> 5, (z >> 4) >> 5)
.getOrCreate((x >> 4) & 31, (z >> 4) & 31)
.getOrCreate(y >> 4).slice(t)