Permalink
Browse files

Fixed an error, and made a small optimisation

  • Loading branch information...
me4502 committed Nov 2, 2017
1 parent d4fa3cd commit 52dd431ecb758997a2c8b166f08f6408b832cf2d
@@ -50,11 +50,15 @@ public ChangedSign(Block block, String[] lines, LocalPlayer player) {
public ChangedSign(Block block, String[] lines) {
Validate.notNull(sign);
Validate.notNull(block);
this.block = block;
this.lines = lines;
this.sign = (Sign) block.getState();
if (lines == null) {
this.lines = this.sign.getLines();
}
}
public BlockWorldVector getBlockVector() {
@@ -386,6 +386,8 @@ public void onEnable() {
ItemSyntax.plugin = this;
nmsAdapter = new NMSAdapter();
plugins = new CompanionPlugins();
plugins.initiate(this);
@@ -414,8 +416,6 @@ public void onEnable() {
uuidMappings = new UUIDMappings();
uuidMappings.enable();
nmsAdapter = new NMSAdapter();
logDebugMessage("Initializing Managers!", "startup");
managerAdapter = new MechanicListenerAdapter();
@@ -44,7 +44,7 @@ public static void printStacktrace(Throwable e) {
}
public static ChangedSign toChangedSign(Block sign) {
return toChangedSign(sign, ((Sign) sign.getState()).getLines());
return toChangedSign(sign, null);
}
public static ChangedSign toChangedSign(Block block, String[] lines) {

0 comments on commit 52dd431

Please sign in to comment.