Skip to content

Commit

Permalink
Increase potionTypes array to 256 slots
Browse files Browse the repository at this point in the history
  • Loading branch information
EverNife committed May 6, 2024
1 parent 9bdc2dd commit 0bb20cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 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,6 +17,13 @@
@@ -17,9 +17,16 @@
import net.minecraft.util.DamageSource;
import net.minecraft.util.StringUtils;

Expand All @@ -13,7 +13,11 @@
+
public class Potion
{
public static final Potion[] potionTypes = new Potion[32];
- 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);
@@ -78,6 +85,7 @@
}

Expand Down

0 comments on commit 0bb20cc

Please sign in to comment.