mirror of
https://github.com/songoda/EpicFurnaces.git
synced 2025-01-05 23:37:34 +01:00
manual merge
This commit is contained in:
commit
09216ac604
@ -172,7 +172,6 @@ public class Furnace {
|
||||
}
|
||||
|
||||
private void syncName() {
|
||||
if (!(location.getBlock() instanceof Furnace)) return;
|
||||
org.bukkit.block.Furnace furnace = (org.bukkit.block.Furnace) location.getBlock().getState();
|
||||
if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_10))
|
||||
furnace.setCustomName(Methods.formatName(level.getLevel(), uses, false));
|
||||
|
@ -76,20 +76,19 @@ public class FurnaceTask extends BukkitRunnable {
|
||||
|
||||
if (block.getType() == Material.AIR || block.getRelative(BlockFace.UP).getType() != Material.AIR) continue;
|
||||
|
||||
if (block.getType() == Material.SNOW)
|
||||
block.setType(Material.AIR);
|
||||
else if (block.getType() == Material.ICE || block.getType() == Material.PACKED_ICE)
|
||||
block.setType(Material.WATER);
|
||||
else
|
||||
continue;
|
||||
|
||||
if (doParticles) {
|
||||
|
||||
float xx = (float) (0 + (Math.random() * .75));
|
||||
float yy = (float) (0 + (Math.random() * 1));
|
||||
float zz = (float) (0 + (Math.random() * .75));
|
||||
|
||||
CompatibleParticleHandler.spawnParticles(CompatibleParticleHandler.ParticleType.SMOKE_NORMAL, location, 25, xx, yy, zz, 0);
|
||||
}
|
||||
if (block.getType() == Material.SNOW) {
|
||||
block.setType(Material.AIR);
|
||||
} else if (block.getType() == Material.ICE || block.getType() == Material.PACKED_ICE) {
|
||||
block.setType(Material.WATER);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user