Fix some remaining issues with supply drops

This commit is contained in:
AlexTheCoder 2017-10-01 20:11:24 -04:00 committed by cnr
parent fd5a09e71b
commit be3e893b55
2 changed files with 8 additions and 1 deletions

View File

@ -128,7 +128,8 @@ public class SupplyDrop
{
inventory.setItem(i++, item);
}
_block.setMetadata(SUPPLY_DROP_FILLED_METADATA, new FixedMetadataValue(UtilServer.getPlugin(), true));
chest.update(true);
chest.setMetadata(SUPPLY_DROP_FILLED_METADATA, new FixedMetadataValue(UtilServer.getPlugin(), true));
}, 5);
}

View File

@ -17,6 +17,7 @@ import com.mineplex.clansqueue.common.ClansQueueMessenger;
import com.mineplex.clansqueue.common.QueueConstant;
import com.mineplex.clansqueue.common.messages.ServerOfflineMessage;
import mineplex.core.Managers;
import mineplex.core.MiniPlugin;
import mineplex.core.account.permissions.Permission;
import mineplex.core.account.permissions.PermissionGroup;
@ -36,6 +37,7 @@ import mineplex.core.updater.UpdateType;
import mineplex.core.updater.event.RestartServerEvent;
import mineplex.core.updater.event.UpdateEvent;
import mineplex.game.clans.clans.ClansManager;
import mineplex.game.clans.clans.supplydrop.SupplyDropManager;
import mineplex.game.clans.gameplay.safelog.npc.NPCManager;
import net.minecraft.server.v1_8_R3.MinecraftServer;
@ -120,6 +122,10 @@ public class RestartManager extends MiniPlugin
{
return false;
}
if (Managers.get(SupplyDropManager.class).hasActiveSupplyDrop())
{
return false;
}
return true;
}