Skip to content

Commit

Permalink
Use block category
Browse files Browse the repository at this point in the history
  • Loading branch information
dordsor21 committed Nov 4, 2024
1 parent 2c1a212 commit 0517852
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.sk89q.worldedit.registry.state.BooleanProperty;
import com.sk89q.worldedit.registry.state.EnumProperty;
import com.sk89q.worldedit.registry.state.Property;
import com.sk89q.worldedit.world.block.BlockCategories;
import com.sk89q.worldedit.world.block.BlockState;
import com.sk89q.worldedit.world.block.BlockType;
import com.sk89q.worldedit.world.block.BlockTypes;
Expand Down Expand Up @@ -132,9 +133,7 @@ public boolean apply(BlockVector3 position, int depth) throws WorldEditException
return false;
}
//FAWE end
} else if (!block.getBlockType().id().toLowerCase(Locale.ROOT).contains("ice") && block.getBlockType()
.getMaterial()
.isTranslucent()) {
} else if (!BlockCategories.SNOW_LAYER_CAN_SURVIVE_ON.contains(block.getBlockType())) {
return false;
}

Expand Down

0 comments on commit 0517852

Please sign in to comment.