This commit is contained in:
nossr50
2020-02-27 07:36:41 -08:00
parent eff1ce102f
commit 441125dbd1
4 changed files with 13 additions and 2 deletions

View File

@ -147,7 +147,7 @@ public class MiningManager extends SkillManager {
ores.add(blockState);
}
//Server bug that allows beacons to be duped when yield is set to 0
else if(blockState.getType() != Material.BEACON) {
else if(blockState.getType() != Material.BEACON && blockState.getType() != Material.SHULKER_BOX) {
debris.add(blockState);
}
}

View File

@ -43,12 +43,18 @@ public final class ParticleEffectUtils {
return;
}
if(location.getWorld() == null)
return;
location.getWorld().playEffect(location, Effect.MOBSPAWNER_FLAMES, 1);
}
public static void playSmokeEffect(Location location) {
World world = location.getWorld();
if(world == null)
return;
// Have to do it this way, because not all block directions are valid for smoke
world.playEffect(location, Effect.SMOKE, BlockFace.SOUTH_EAST);
world.playEffect(location, Effect.SMOKE, BlockFace.SOUTH);