forked from Upstream/mmocore
Loot Chests should no longer drop loot on restart!
This commit is contained in:
parent
79007f38af
commit
795a878110
@ -126,6 +126,8 @@ public class LootableChestManager {
|
||||
loc.getWorld().playSound(loc, Sound.ITEM_ARMOR_EQUIP_LEATHER, 1, 1);
|
||||
loc.getWorld().spawnParticle(Particle.CRIT, loc.clone().add(.5, .5, .5), 16, 0, 0, 0, .5);
|
||||
}
|
||||
if(loc.getBlock().getState() instanceof Chest)
|
||||
((Chest) loc.getBlock().getState()).getBlockInventory().clear();
|
||||
loc.getBlock().setType(Material.AIR);
|
||||
lastDisappear = System.currentTimeMillis();
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(MMOCore.plugin, () -> whenSpawn(), regenTime);
|
||||
|
Loading…
Reference in New Issue
Block a user