Fix large swath of warnings, fix most render-methods
This commit is contained in:
@@ -47,6 +47,7 @@ public class CompactBoundsOperation extends WorldOperation
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean finish()
|
||||
{
|
||||
if (minX == Integer.MAX_VALUE)
|
||||
|
||||
@@ -118,6 +118,7 @@ public class Schematic {
|
||||
|
||||
public static Schematic readFromFile(File schematicFile) throws FileNotFoundException, InvalidSchematicException
|
||||
{
|
||||
// TODO: fix resource leaks here
|
||||
return readFromStream(new FileInputStream(schematicFile));
|
||||
}
|
||||
|
||||
@@ -329,7 +330,7 @@ public class Schematic {
|
||||
{
|
||||
//Used when the result of this function will be passed outside this class.
|
||||
//Avoids exposing the private field to external modifications.
|
||||
schematicTag.setTag("TileEntities", (NBTTagList) tileEntities.copy());
|
||||
schematicTag.setTag("TileEntities", tileEntities.copy());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -48,6 +48,7 @@ public class SchematicFilter {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return name;
|
||||
|
||||
Reference in New Issue
Block a user