Fix start and teleport signs; resolves #403

This commit is contained in:
Daniel Saukel 2018-05-24 20:49:04 +02:00
parent e2456f360b
commit 27307471e3
2 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ public class TeleportSign extends LocationSign {
@Override @Override
public void onInit() { public void onInit() {
super.onInit();
for (int i = 1; i <= 2; i++) { for (int i = 1; i <= 2; i++) {
if (!lines[i].isEmpty()) { if (!lines[i].isEmpty()) {
int yaw = letterToYaw(lines[i].charAt(0)); int yaw = letterToYaw(lines[i].charAt(0));

View File

@ -61,6 +61,7 @@ public class StartSign extends LocationSign {
@Override @Override
public void onInit() { public void onInit() {
super.onInit();
id = NumberUtil.parseInt(lines[1]); id = NumberUtil.parseInt(lines[1]);
getSign().getBlock().setType(VanillaItem.AIR.getMaterial()); getSign().getBlock().setType(VanillaItem.AIR.getMaterial());
} }