mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 18:37:42 +01:00
Add config for snow on blue ice
This commit is contained in:
committed by
granny
parent
f4e3250945
commit
1ffee543ad
@@ -0,0 +1,10 @@
|
||||
--- a/net/minecraft/world/level/block/SnowLayerBlock.java
|
||||
+++ b/net/minecraft/world/level/block/SnowLayerBlock.java
|
||||
@@ -96,6 +_,7 @@
|
||||
@Override
|
||||
protected boolean canSurvive(BlockState state, LevelReader level, BlockPos pos) {
|
||||
BlockState blockState = level.getBlockState(pos.below());
|
||||
+ if (blockState.is(Blocks.BLUE_ICE) && !level.getWorldBorder().world.purpurConfig.snowOnBlueIce) return false; // Purpur - Add config for snow on blue ice
|
||||
return !blockState.is(BlockTags.SNOW_LAYER_CANNOT_SURVIVE_ON)
|
||||
&& (
|
||||
blockState.is(BlockTags.SNOW_LAYER_CAN_SURVIVE_ON)
|
||||
Reference in New Issue
Block a user