@@ -1169,22 +1169,18 @@ public void addBlocksToWorld(Level world, StructureTransform transform) {
1169
1169
targetPos .relative (face ));
1170
1170
1171
1171
BlockState blockState = world .getBlockState (targetPos );
1172
- if (world . isOutsideBuildHeight ( targetPos ) ||
1173
- blockState . getDestroySpeed (world , targetPos ) == - 1 ||
1174
- ( state . getCollisionShape ( world , targetPos ). isEmpty () &&
1175
- ! blockState . getCollisionShape ( world , targetPos ). isEmpty ()) ) {
1172
+ if (blockState . getDestroySpeed ( world , targetPos ) == - 1 ||
1173
+ ( state . getCollisionShape (world , targetPos ). isEmpty () && ! blockState . getCollisionShape ( world , targetPos )
1174
+ . isEmpty () || world . isOutsideBuildHeight ( targetPos ))
1175
+ ) {
1176
1176
if (targetPos .getY () == world .getMinBuildHeight ())
1177
1177
targetPos = targetPos .above ();
1178
-
1179
1178
world .levelEvent (2001 , targetPos , Block .getId (state ));
1180
-
1181
- if (!shouldDropBlocks )
1182
- continue ;
1183
-
1184
- if (ghostLevel == null && world instanceof ServerLevel serverWorld )
1179
+ if (!shouldDropBlocks )
1180
+ continue ;
1181
+ if (ghostLevel == null && world instanceof ServerLevel serverWorld )
1185
1182
ghostLevel = new GhostPlacementServerLevel (serverWorld );
1186
-
1187
- if (ghostLevel != null ){
1183
+ if (ghostLevel != null ) {
1188
1184
ghostLevel .setBlock (targetPos , state , Block .UPDATE_NONE );
1189
1185
BlockEntity be = ghostLevel .getBlockEntity (targetPos );
1190
1186
if (be != null ) {
@@ -1195,7 +1191,6 @@ public void addBlocksToWorld(Level world, StructureTransform transform) {
1195
1191
}
1196
1192
ghostLevel .destroyBlock (targetPos , true );
1197
1193
}
1198
-
1199
1194
continue ;
1200
1195
}
1201
1196
if (state .getBlock () instanceof SimpleWaterloggedBlock
0 commit comments