From 0c25d2504648fe433649f800c8165ba0c29e6e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9trus=20Pradella?= Date: Mon, 6 May 2024 15:53:14 -0300 Subject: [PATCH] Revert "Increase potionTypes array to 256 slots" "The moment the customer receives the potion ID outside the vanilla range will crash" Its a better idea to though a mod :/ --- patches/net/minecraft/potion/Potion.java.patch | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/patches/net/minecraft/potion/Potion.java.patch b/patches/net/minecraft/potion/Potion.java.patch index 4d0583ce..27b32268 100644 --- a/patches/net/minecraft/potion/Potion.java.patch +++ b/patches/net/minecraft/potion/Potion.java.patch @@ -1,6 +1,6 @@ --- ../src-base/minecraft/net/minecraft/potion/Potion.java +++ ../src-work/minecraft/net/minecraft/potion/Potion.java -@@ -17,9 +17,16 @@ +@@ -17,6 +17,13 @@ import net.minecraft.util.DamageSource; import net.minecraft.util.StringUtils; @@ -13,11 +13,7 @@ + public class Potion { -- public static final Potion[] potionTypes = new Potion[32]; -+ public static final Potion[] potionTypes = new Potion[256]; - public static final Potion field_76423_b = null; - public static final Potion moveSpeed = (new Potion(1, false, 8171462)).setPotionName("potion.moveSpeed").setIconIndex(0, 0).func_111184_a(SharedMonsterAttributes.movementSpeed, "91AEAA56-376B-4498-935B-2F7F68070635", 0.20000000298023224D, 2); - public static final Potion moveSlowdown = (new Potion(2, true, 5926017)).setPotionName("potion.moveSlowdown").setIconIndex(1, 0).func_111184_a(SharedMonsterAttributes.movementSpeed, "7107DE5E-7CE8-4030-940E-514C1F160890", -0.15000000596046448D, 2); + public static final Potion[] potionTypes = new Potion[32]; @@ -78,6 +85,7 @@ }