Fixed glitching dom items in Hub due to portal throw.

This commit is contained in:
Jonathan Williams 2014-11-21 18:30:26 -08:00
parent d1578b12d4
commit 6efa416d81

View File

@ -145,6 +145,8 @@ public class ServerManager extends MiniPlugin
long timeUntilPortal = getMillisecondsUntilPortal(player, false);
if (!_hubManager.CanPortal(player) || timeUntilPortal > 0)
{
player.closeInventory();
if (timeUntilPortal > 0)
{
player.playSound(player.getEyeLocation(), Sound.CHICKEN_EGG_POP, 2, 2);