Remove rotaton on emblems

This commit is contained in:
Sam 2017-08-24 11:52:04 +01:00
parent a3afa48549
commit 19c65560c5
2 changed files with 3 additions and 13 deletions

View File

@ -86,16 +86,8 @@ public class EmblemGadget extends GameModifierGadget
_schematic = SCHEMATICS.get(type.getSchematic() + ".schematic");
}
public SchematicData buildAt(Location location, boolean inverse)
public SchematicData buildAt(Location location)
{
Schematic schematic = _schematic;
// if (inverse)
// {
// schematic = new Schematic(schematic)
// .rotate180();
// }
return schematic.paste(location.clone().add(0, schematic.getHeight() + 2, 0), true, true);
return _schematic.paste(location.clone().add(0, _schematic.getHeight() + 2, 0), true, true);
}
}

View File

@ -2,7 +2,6 @@ package nautilus.game.arcade.game.games.moba.modes;
import java.util.List;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
@ -38,7 +37,6 @@ public class MobaMap implements Listener
{
List<Location> schematicSpawns = _host.WorldData.GetCustomLocs("EMBLEM " + team.GetName().toUpperCase());
int index = 0;
boolean inverse = team.GetColor() == ChatColor.RED;
for (Player player : team.GetPlayers(true))
{
@ -58,7 +56,7 @@ public class MobaMap implements Listener
}
Location location = schematicSpawns.get(index++);
gadget.buildAt(location, inverse);
gadget.buildAt(location);
}
}
}