Skip to content

Forge Patch Diff Tool / Test #2

@AterAnimAvis

Description

@AterAnimAvis

The move in FG from diff4j to DiffPatch results in many changes from the Generated Patches such as

-@@ -370,6 +370,14 @@
+@@ -369,6 +369,14 @@
+     {
          return this.func_189101_db() ? SoundEvents.field_189110_fE : SoundEvents.field_187882_fq;
      }
- 
++
 +    /* ======================================== FORGE START =====================================*/
 +    /**
 +     * Called when the slime spawns particles on landing, see onUpdate.
 +     * Return true to prevent the spawning of the default particles.
 +     */
 +    protected boolean spawnCustomParticles() { return false; }
 +    /* ======================================== FORGE END   =====================================*/
-+
+ 
      static class AISlimeAttack extends EntityAIBase
          {
-             private final EntitySlime field_179466_a;

A tool/task to diff the output of the application of the patches pre retrogradle and after retrogradle would be helpfull for finding actual changes (like below) and for verification purposes:

+@@ -295,7 +298,7 @@
+                 {
+                     if (((TileEntityDispenser)p_82487_1_.func_150835_j()).func_146019_a(new ItemStack(item)) < 0)
+                     {
+-                        this.field_150840_b.func_82482_a(p_82487_1_, new ItemStack(item));
++                        this.dispenseBehavior.func_82482_a(p_82487_1_, new ItemStack(item));
+                     }
+ 
+                     return p_82487_2_;

Metadata

Metadata

Assignees

No one assigned

    Labels

    forgeRelated to the Forge repository

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Help Wanted

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions