Skip to content

Commit

Permalink
Revert "Increase potionTypes array to 256 slots"
Browse files Browse the repository at this point in the history
"The moment the customer receives the potion ID outside the vanilla range will crash"

Its a better idea to though a mod :/
  • Loading branch information
EverNife committed May 6, 2024
1 parent 0bb20cc commit 0c25d25
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions patches/net/minecraft/potion/Potion.java.patch
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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 @@
}

Expand Down

0 comments on commit 0c25d25

Please sign in to comment.