Skip to content

Commit

Permalink
fixed import and int to string
Browse files Browse the repository at this point in the history
  • Loading branch information
cindyker committed Jan 24, 2015
1 parent 2d4edb5 commit 1b9dd5e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@
</repositories>

<dependencies>
<!--Spigot-API-->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.8-R0.1-SNAPSHOT</version>
</dependency>
<!--Bukkit API-->
<dependency>
<groupId>org.bukkit</groupId>
Expand Down
7 changes: 5 additions & 2 deletions src/main/classes/EasyElevator.java
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,14 @@ private org.bukkit.block.Sign getSurroundingElevatorSign(Player player)
{
boolean isPS = false;
for (Elevator e : this.elevators)
if (e.getPlatform()getSign().equals(sign)) {
{
if (e.getPlatform().getSign().equals(sign))
{
isPS = true;
}
}
if (!isPS) {
if (!isPS)
{
return (org.bukkit.block.Sign)tempBlock.getState();
}
}
Expand Down
7 changes: 3 additions & 4 deletions src/main/classes/Elevator.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.util.Iterator;
import java.util.List;

import javafx.application.Platform;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
Expand Down Expand Up @@ -676,7 +675,7 @@ private void updateFloorIndicator()
for (int i = 0; i < this.floors.size(); i++) {
if (curr != -1)
{
((Floor)this.floors.get(i)).writeSign(2, curr);
((Floor)this.floors.get(i)).writeSign(2, ""+curr);
}
else
{
Expand All @@ -690,7 +689,7 @@ private void updateFloorIndicator()
}
if (curr != -1)
{
this.platform.writeSign(2, curr);
this.platform.writeSign(2, ""+ curr);
}
else
{
Expand All @@ -703,7 +702,7 @@ private void updateFloorIndicator()
}
int next = getFloorNumberFromHeight(getNextFloorHeight());
if (next != -1) {
this.platform.writeSign(3, next);
this.platform.writeSign(3,""+ next);
} else {
this.platform.writeSign(3, "-");
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/classes/Floor.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public Floor(Elevator elv, Location l1, Location l2, Sign callSign, int floor)
private void initializeSign()
{
this.callSign.setLine(0, ChatColor.DARK_GRAY + "[EElevator]");
this.callSign.setLine(1, this.floor);
this.callSign.setLine(1, ""+ this.floor);
this.callSign.update();
}

Expand Down

0 comments on commit 1b9dd5e

Please sign in to comment.