File tree 3 files changed +9
-2
lines changed
java/com/ldtteam/structurize/util
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ javaVersion=21
12
12
useJavaToolChains =true
13
13
14
14
# The currently running forge.
15
- forgeVersion =21.1.72
15
+ forgeVersion =21.1.84
16
16
17
17
fmlRange =[4,)
18
18
forgeRange =[21.0.143,)
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public static void checkOrInit()
110
110
{
111
111
BuiltInRegistries .BLOCK .stream ()
112
112
.filter (BlockUtils ::canBlockSurviveWithoutSupport )
113
- .filter (block -> !block .defaultBlockState ().isAir () && !(block instanceof LiquidBlock ) && !block .builtInRegistryHolder ().is (ModTags .WEAK_SOLID_BLOCKS ))
113
+ .filter (block -> !block .defaultBlockState ().canBeReplaced () && block . hasCollision && ! block . defaultBlockState (). isAir () && !(block instanceof LiquidBlock ) && !block .builtInRegistryHolder ().is (ModTags .WEAK_SOLID_BLOCKS ))
114
114
.forEach (trueSolidBlocks ::add );
115
115
}
116
116
}
@@ -802,6 +802,11 @@ public static boolean isWeakSolidBlock(final BlockState blockState)
802
802
return blockState .isRandomlyTicking ();
803
803
}
804
804
805
+ if (blockState .canBeReplaced () || !blockState .getBlock ().hasCollision )
806
+ {
807
+ return false ;
808
+ }
809
+
805
810
final Block block = blockState .getBlock ();
806
811
return block .builtInRegistryHolder ().is (ModTags .WEAK_SOLID_BLOCKS ) && canBlockSurviveWithoutSupport (block );
807
812
}
Original file line number Diff line number Diff line change @@ -25,3 +25,5 @@ public net.minecraft.client.KeyMapping clickCount
25
25
# itemHandler
26
26
public net.minecraft.world.entity.decoration.GlowItemFrame getFrameItemStack()Lnet/minecraft/world/item/ItemStack;
27
27
public net.minecraft.world.entity.decoration.ItemFrame getFrameItemStack()Lnet/minecraft/world/item/ItemStack;
28
+
29
+ public net.minecraft.world.level.block.state.BlockBehaviour hasCollision # hasCollision
You can’t perform that action at this time.
0 commit comments