Skip to content

Commit

Permalink
rename placeLogsAndLeaves to updateLeavesDistances (#449)
Browse files Browse the repository at this point in the history
* rename placeLogsAndLeaves to setLeavesDistances

* use 'update' instead of 'set' due to feedback from LambdAurora
  • Loading branch information
supersaiyansubtlety committed Jun 18, 2023
1 parent b9c5256 commit eee777e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ CLASS net/minecraft/unmapped/C_rjclkmav net/minecraft/world/gen/feature/TreeFeat
METHOD m_kqfxkmef isAirOrLeaves (Lnet/minecraft/unmapped/C_agsukcmb;Lnet/minecraft/unmapped/C_hynzadkk;)Z
ARG 0 world
ARG 1 pos
METHOD m_pbhmakwe placeLogsAndLeaves (Lnet/minecraft/unmapped/C_vdvbsyle;Lnet/minecraft/unmapped/C_hmqypqzz;Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)Lnet/minecraft/unmapped/C_bipoyzjn;
METHOD m_pbhmakwe updateLeavesDistances (Lnet/minecraft/unmapped/C_vdvbsyle;Lnet/minecraft/unmapped/C_hmqypqzz;Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)Lnet/minecraft/unmapped/C_bipoyzjn;
ARG 0 world
ARG 1 box
ARG 2 trunkPositions
Expand Down

1 comment on commit eee777e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With commit eee777e, 1 file(s) were updated with 3 line(s) added and 3 removed compared to the latest Quilt Mappings version.

View the diff here:
diff -bur namedTargetSrc/net/minecraft/world/gen/feature/TreeFeature.java namedSrc/net/minecraft/world/gen/feature/TreeFeature.java
--- namedTargetSrc/net/minecraft/world/gen/feature/TreeFeature.java	2023-06-18 18:29:26.248844937 +0000
+++ namedSrc/net/minecraft/world/gen/feature/TreeFeature.java	2023-06-18 18:27:31.177527219 +0000
@@ -204,7 +204,7 @@
          }
 
          return (Boolean)BlockBox.encompassPositions(Iterables.concat(set, set2, set3, set4)).map(arg2 -> {
-            VoxelSet lvx = placeLogsAndLeaves(lv, arg2, set2, set4, set);
+            VoxelSet lvx = updateLeavesDistances(lv, arg2, set2, set4, set);
             Structure.updateCorner(lv, Block.NOTIFY_ALL, lvx, arg2.getMinX(), arg2.getMinY(), arg2.getMinZ());
             return true;
          }).orElse(false);
@@ -215,9 +215,9 @@
 
    /**
     * @mapping {@literal hashed m_pbhmakwe Lnet/minecraft/unmapped/C_rjclkmav;m_pbhmakwe(Lnet/minecraft/unmapped/C_vdvbsyle;Lnet/minecraft/unmapped/C_hmqypqzz;Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)Lnet/minecraft/unmapped/C_bipoyzjn;}
-    * @mapping {@literal named placeLogsAndLeaves Lnet/minecraft/world/gen/feature/TreeFeature;placeLogsAndLeaves(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockBox;Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)Lnet/minecraft/util/shape/VoxelSet;}
+    * @mapping {@literal named updateLeavesDistances Lnet/minecraft/world/gen/feature/TreeFeature;updateLeavesDistances(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockBox;Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)Lnet/minecraft/util/shape/VoxelSet;}
     */
-   private static VoxelSet placeLogsAndLeaves(
+   private static VoxelSet updateLeavesDistances(
       WorldAccess world, BlockBox box, Set<BlockPos> trunkPositions, Set<BlockPos> decorationPositions, Set<BlockPos> set3
    ) {
       VoxelSet lv = new BitSetVoxelSet(box.getBlockCountX(), box.getBlockCountY(), box.getBlockCountZ());

Please sign in to comment.