forked from neoforged/NeoForge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix more particle culling issues (neoforged#951)
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
patches/net/minecraft/client/particle/ItemPickupParticle.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- a/net/minecraft/client/particle/ItemPickupParticle.java | ||
+++ b/net/minecraft/client/particle/ItemPickupParticle.java | ||
@@ -103,4 +_,11 @@ | ||
this.targetYOld = this.targetY; | ||
this.targetZOld = this.targetZ; | ||
} | ||
+ | ||
+ // Neo: Computing a bounding box for the pickup animation is annoying to patch in, and probably slower than | ||
+ // always rendering it | ||
+ @Override | ||
+ public net.minecraft.world.phys.AABB getRenderBoundingBox(float partialTicks) { | ||
+ return net.minecraft.world.phys.AABB.INFINITE; | ||
+ } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters