fix for Spout's questionable new "no default height" warning for variable-sized text labels

also updated Bukkit lib
This commit is contained in:
Brettflan 2011-12-15 23:48:15 -06:00
parent 1e1925b43e
commit f1114848ff
2 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,7 @@ public class SpoutMainListener extends SpoutListener
else
{
label = new GenericLabel();
label.setWidth(1).setHeight(1); // prevent Spout's questionable new "no default size" warning
label.setScale(Conf.spoutTerritoryDisplaySize);
/* // this should work once the Spout team fix it to account for text scaling; we can then get rid of alignLabel method added below
switch (Conf.spoutTerritoryDisplayPosition) {
@ -116,6 +117,7 @@ public class SpoutMainListener extends SpoutListener
else
{
label = new NoticeLabel(Conf.spoutTerritoryNoticeLeaveAfterSeconds);
label.setWidth(1).setHeight(1); // prevent Spout's questionable new "no default size" warning
label.setScale(Conf.spoutTerritoryNoticeSize);
label.setY(Conf.spoutTerritoryNoticeTop);
sPlayer.getMainScreen().attachWidget(P.p, label);