From 3225ea12c1660d455d30f86847c652a7a4708435 Mon Sep 17 00:00:00 2001 From: QPCrummer <66036033+QPCrummer@users.noreply.github.com> Date: Sat, 22 Jun 2024 23:18:25 -0400 Subject: [PATCH] 1.21 fixes and additional optimizations - Fixed enchantments not working due to a Mixin - Added an "unstable" category for things that aren't enabled by default because they aren't fully polished - Added a tnt networking optimization - Fixed some older optimizations that were disabled - Moved some optimizations to the "unstable" category - Add a proper naming scheme --- gradle.properties | 2 +- .../potatoptimize/config/Option.java | 2 +- .../config/PotatoptimizeConfig.java | 23 ++++++++------- .../pathfinding/MobPathfindingMixin.java | 4 +-- .../BlockViewCastingMixin.java | 3 +- .../logic/shape/SimplePairListMixin.java | 22 ++++++++++++--- .../logic/worker_thread/MCUtilMixin.java | 2 +- .../reduce_alloc/EnchantmentsMixin.java | 18 ------------ .../entity_ticking/EntityListMixin.java | 2 +- .../EntityServerThreadingMixin.java | 2 +- .../ClientExplosionMixin.java | 28 +++++++++++++++++++ .../ExplosionNetworkingMixin.java | 26 +++++++++++++++++ .../reduce_random/RandomCreationMixin.java | 2 +- ...atoptimize-mixin-config-default.properties | 7 +++-- src/main/resources/potatoptimize.mixins.json | 9 +++--- 15 files changed, 104 insertions(+), 48 deletions(-) delete mode 100644 src/main/java/com/github/tatercertified/potatoptimize/mixin/memory/reduce_alloc/EnchantmentsMixin.java rename src/main/java/com/github/tatercertified/potatoptimize/mixin/{threading => unstable}/entity_ticking/EntityListMixin.java (95%) rename src/main/java/com/github/tatercertified/potatoptimize/mixin/{threading => unstable}/entity_ticking/EntityServerThreadingMixin.java (95%) create mode 100644 src/main/java/com/github/tatercertified/potatoptimize/mixin/unstable/explosion_packets/ClientExplosionMixin.java create mode 100644 src/main/java/com/github/tatercertified/potatoptimize/mixin/unstable/explosion_packets/ExplosionNetworkingMixin.java rename src/main/java/com/github/tatercertified/potatoptimize/mixin/{memory => unstable}/reduce_random/RandomCreationMixin.java (89%) diff --git a/gradle.properties b/gradle.properties index bd4465e..9b5f254 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G loader_version=0.15.11 # Mod Properties - mod_version = 0.0.1 + mod_version = 0.0.1-dev.1 maven_group = com.github.tatercertified archives_base_name = potatoptimize diff --git a/src/main/java/com/github/tatercertified/potatoptimize/config/Option.java b/src/main/java/com/github/tatercertified/potatoptimize/config/Option.java index f621d32..894ab06 100644 --- a/src/main/java/com/github/tatercertified/potatoptimize/config/Option.java +++ b/src/main/java/com/github/tatercertified/potatoptimize/config/Option.java @@ -13,7 +13,7 @@ public class Option { private final String name; private Object2BooleanLinkedOpenHashMap