Cleanup unused

This commit is contained in:
Daniel Mills 2021-07-18 18:45:41 -04:00
parent aae47e103b
commit deb75df77a
3 changed files with 2 additions and 6 deletions

View File

@ -57,7 +57,7 @@ public class CommandIrisStudioTPStudio extends MortarCommand {
try { try {
sender.sendMessage("Teleporting you to the active studio world."); sender.sendMessage("Teleporting you to the active studio world.");
sender.player().teleport(Iris.proj.getActiveProject().getActiveProvider().getTarget().getWorld().getSpawnLocation()); sender.player().teleport(Iris.proj.getActiveProject().getActiveProvider().getTarget().getWorld().spawnLocation());
sender.player().setGameMode(GameMode.SPECTATOR); sender.player().setGameMode(GameMode.SPECTATOR);
} catch (Throwable e) { } catch (Throwable e) {
Iris.reportError(e); Iris.reportError(e);

View File

@ -60,8 +60,4 @@ public class IrisRenderer {
return image; return image;
} }
public void set(double worldX, double worldZ) {
renderer.getWorld().getBlockAt((int) worldX, 20, (int) worldZ).setType(Material.DIAMOND_BLOCK);
}
} }

View File

@ -85,7 +85,7 @@ public class IrisWorld {
bindWorld(this, world); bindWorld(this, world);
} }
public Location getSpawnLocation() { public Location spawnLocation() {
if(hasRealWorld()) if(hasRealWorld())
{ {
return realWorld().getSpawnLocation(); return realWorld().getSpawnLocation();