mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Cleanup sources
This commit is contained in:
parent
ccd05c04a5
commit
fd2e8cfa8a
@ -288,8 +288,7 @@ public class ResourceLoader<T extends IrisRegistrant> implements MeteredCache {
|
|||||||
public KList<File> getFolders() {
|
public KList<File> getFolders() {
|
||||||
|
|
||||||
|
|
||||||
synchronized(folderCache)
|
synchronized(folderCache) {
|
||||||
{
|
|
||||||
if(folderCache.get() == null) {
|
if(folderCache.get() == null) {
|
||||||
KList<File> fc = new KList<>();
|
KList<File> fc = new KList<>();
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ public class IrisCarveModifier extends EngineAssignedModifier<BlockData> {
|
|||||||
} else if(c.isLava()) {
|
} else if(c.isLava()) {
|
||||||
output.set(rx, yy, rz, LAVA);
|
output.set(rx, yy, rz, LAVA);
|
||||||
} else {
|
} else {
|
||||||
if(getEngine().getDimension().getCaveLavaHeight() > yy){
|
if(getEngine().getDimension().getCaveLavaHeight() > yy) {
|
||||||
output.set(rx, yy, rz, LAVA);
|
output.set(rx, yy, rz, LAVA);
|
||||||
} else {
|
} else {
|
||||||
output.set(rx, yy, rz, AIR);
|
output.set(rx, yy, rz, AIR);
|
||||||
|
@ -445,15 +445,10 @@ public class B {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static synchronized BlockData createBlockData(String s) {
|
private static synchronized BlockData createBlockData(String s) {
|
||||||
try
|
try {
|
||||||
{
|
|
||||||
return Bukkit.createBlockData(s);
|
return Bukkit.createBlockData(s);
|
||||||
}
|
} catch(IllegalArgumentException e) {
|
||||||
|
if(s.contains("[")) {
|
||||||
catch(IllegalArgumentException e)
|
|
||||||
{
|
|
||||||
if(s.contains("["))
|
|
||||||
{
|
|
||||||
return createBlockData(s.split("\\Q[\\E")[0]);
|
return createBlockData(s.split("\\Q[\\E")[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user