Fixed Door Bugs
Fixed the bugs that caused doors not to appear right in dungeons. First there was a bug with filters that caused them not to replace blocks properly. I made some changes to SchematicFilter and its derived classes so that the implementations are a little more intuitive. That should prevent those bugs in any future derived classes. Then doors wouldn't rotate properly. DD was never designed to rotate dimensional doors. I added code to BlockRotator for that and shifted some code from DungeonHelper to BlockRotator. More coherence, less coupling!
This commit is contained in:
@@ -81,25 +81,6 @@ public class CommandCreateDungeonRift extends DDCommandBase
|
||||
link = dimHelper.instance.createPocket(link, true, true);
|
||||
dimHelper.dimList.get(link.destDimID).dungeonGenerator = result;
|
||||
sender.sendChatToPlayer("Created a rift to \"" + getSchematicName(result) + "\" dungeon (Dimension ID = " + link.destDimID + ").");
|
||||
|
||||
/*try {
|
||||
DungeonSchematic dungeon;
|
||||
if ((new File(result.schematicPath)).exists())
|
||||
{
|
||||
dungeon = DungeonSchematic.readFromFile(result.schematicPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
dungeon = DungeonSchematic.readFromResource(result.schematicPath);
|
||||
}
|
||||
dungeon.applyImportFilters(DDProperties.instance());
|
||||
dungeon.copyToWorld(sender.worldObj, x, y, z);
|
||||
} catch (InvalidSchematicException e) {
|
||||
e.printStackTrace();
|
||||
} catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user