mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-19 15:03:54 +00:00
Minor performance tweaks and cleaning of metrics
Why were metrics so messed up in the first place?
This commit is contained in:
@ -70,11 +70,9 @@ public class OverlayBrush extends PerformBrush {
|
||||
|
||||
@SuppressWarnings("deprecation") private boolean isIgnoredBlock(int materialId) {
|
||||
BlockType type = BlockTypes.get(materialId);
|
||||
switch (type.getResource().toUpperCase()) {
|
||||
case "WATER":
|
||||
case "LAVA":
|
||||
case "CACTUS":
|
||||
return true;
|
||||
String s = type.getResource().toUpperCase();
|
||||
if (type == BlockTypes.WATER || type == BlockTypes.LAVA || type == BlockTypes.CACTUS) {
|
||||
return true;
|
||||
}
|
||||
BlockMaterial mat = type.getMaterial();
|
||||
return mat.isTranslucent();
|
||||
|
@ -2,6 +2,7 @@ package com.thevoxelbox.voxelsniper.brush;
|
||||
|
||||
|
||||
import com.sk89q.worldedit.bukkit.BukkitAdapter;
|
||||
import com.sk89q.worldedit.world.block.BlockType;
|
||||
import com.sk89q.worldedit.world.block.BlockTypes;
|
||||
import com.thevoxelbox.voxelsniper.Message;
|
||||
import com.thevoxelbox.voxelsniper.SnipeData;
|
||||
@ -95,19 +96,15 @@ public class SnowConeBrush extends Brush
|
||||
|
||||
if (snowData > snowconeData[x][z])
|
||||
{
|
||||
switch (BlockTypes.get(snowcone[x][z]).getResource().toUpperCase())
|
||||
{
|
||||
case "AIR":
|
||||
case "CAVE_AIR":
|
||||
case "VOID_AIR":
|
||||
snowconeData[x][z] = snowData;
|
||||
snowcone[x][z] = BlockTypes.SNOW.getInternalId();
|
||||
case "SNOW_BLOCK":
|
||||
snowconeData[x][z] = snowData;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
BlockType blockType =
|
||||
BlockTypes.get(snowcone[x][z]);
|
||||
if (blockType.getMaterial().isAir()) {
|
||||
snowconeData[x][z] = snowData;
|
||||
snowcone[x][z] = BlockTypes.SNOW.getInternalId();
|
||||
|
||||
snowconeData[x][z] = snowData;
|
||||
} else if (blockType == BlockTypes.SNOW_BLOCK) {
|
||||
snowconeData[x][z] = snowData;
|
||||
}
|
||||
}
|
||||
else if (yOffset[x][z] > 0 && snowcone[x][z] == BlockTypes.SNOW.getInternalId())
|
||||
|
Reference in New Issue
Block a user