Skip to content

Commit 0c25d25

Browse files
committed
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 :/
1 parent 0bb20cc commit 0c25d25

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

patches/net/minecraft/potion/Potion.java.patch

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- ../src-base/minecraft/net/minecraft/potion/Potion.java
22
+++ ../src-work/minecraft/net/minecraft/potion/Potion.java
3-
@@ -17,9 +17,16 @@
3+
@@ -17,6 +17,13 @@
44
import net.minecraft.util.DamageSource;
55
import net.minecraft.util.StringUtils;
66

@@ -13,11 +13,7 @@
1313
+
1414
public class Potion
1515
{
16-
- public static final Potion[] potionTypes = new Potion[32];
17-
+ public static final Potion[] potionTypes = new Potion[256];
18-
public static final Potion field_76423_b = null;
19-
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);
20-
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);
16+
public static final Potion[] potionTypes = new Potion[32];
2117
@@ -78,6 +85,7 @@
2218
}
2319

0 commit comments

Comments
 (0)