Fix flashing clock (oops!)

This commit is contained in:
Shaun Bennett 2014-08-01 01:25:11 -05:00
parent fbe6ab2fdb
commit 15d48d2867

View File

@ -85,7 +85,7 @@ public class ServerNpcPage extends ShopPageBase<ServerManager, ServerNpcShop> im
int seconds = (int) (milliseconds / 1000);
String timeLeft = UtilTime.convertString(milliseconds, 0, UtilTime.TimeUnit.SECONDS);
byte data = (byte) (seconds % 1.0 > 0.5 ? 15 : 14);
byte data = (byte) (milliseconds - (seconds * 1000) > 500 ? 15 : 14);
ShopItem item = new ShopItem(Material.WOOL, data, ChatColor.RESET + C.Bold + "Free Server Timer", null, new String[] {
ChatColor.RESET + C.cGreen + timeLeft + " Remaining...",