From da7b5f4b2ec70fcd89a124300dfaf168ba94410f Mon Sep 17 00:00:00 2001 From: gnembon Date: Sun, 30 Sep 2018 23:52:48 -0300 Subject: [PATCH] simpler --- patches/net/minecraft/util/WeightedRandom.java.patch | 10 ++++++++++ patches/net/minecraft/world/biome/Biome.java.patch | 11 ----------- 2 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 patches/net/minecraft/util/WeightedRandom.java.patch delete mode 100644 patches/net/minecraft/world/biome/Biome.java.patch diff --git a/patches/net/minecraft/util/WeightedRandom.java.patch b/patches/net/minecraft/util/WeightedRandom.java.patch new file mode 100644 index 00000000..df4a1df8 --- /dev/null +++ b/patches/net/minecraft/util/WeightedRandom.java.patch @@ -0,0 +1,10 @@ +--- a/net/minecraft/util/WeightedRandom.java ++++ b/net/minecraft/util/WeightedRandom.java +@@ -63,5 +63,7 @@ + { + this.itemWeight = itemWeightIn; + } ++ //CM ++ public int getItemWeight() { return itemWeight; } + } + } diff --git a/patches/net/minecraft/world/biome/Biome.java.patch b/patches/net/minecraft/world/biome/Biome.java.patch deleted file mode 100644 index 69362da8..00000000 --- a/patches/net/minecraft/world/biome/Biome.java.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/net/minecraft/world/biome/Biome.java -+++ b/net/minecraft/world/biome/Biome.java -@@ -830,6 +830,8 @@ - { - return EntityType.getId(this.entityType) + "*(" + this.minGroupCount + "-" + this.maxGroupCount + "):" + this.itemWeight; - } -+ //CM -+ public int getItemWeight() { return itemWeight; } - } - - public static enum TempCategory