mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 20:52:34 +00:00
Merge pull request #2268 from minzmann/master
[1.8.8] Minor Fixes to PotionEffect.java.patch
This commit is contained in:
commit
2ed4f39a13
1 file changed
+3
-12
@@ -57,16 +57,15 @@
|
||||
+ */
|
||||
+ public boolean isCurativeItem(net.minecraft.item.ItemStack stack)
|
||||
+ {
|
||||
+ boolean found = false;
|
||||
+ for (net.minecraft.item.ItemStack curativeItem : this.curativeItems)
|
||||
+ {
|
||||
+ if (curativeItem.func_77969_a(stack))
|
||||
+ {
|
||||
+ found = true;
|
||||
+ return true;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ return found;
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ /***
|
||||
@@ -84,15 +83,7 @@
|
||||
+ */
|
||||
+ public void addCurativeItem(net.minecraft.item.ItemStack stack)
|
||||
+ {
|
||||
+ boolean found = false;
|
||||
+ for (net.minecraft.item.ItemStack curativeItem : this.curativeItems)
|
||||
+ {
|
||||
+ if (curativeItem.func_77969_a(stack))
|
||||
+ {
|
||||
+ found = true;
|
||||
+ }
|
||||
+ }
|
||||
+ if (!found)
|
||||
+ if (!this.isCurativeItem(stack))
|
||||
+ {
|
||||
+ this.curativeItems.add(stack);
|
||||
+ }
|
||||
|
||||
Reference in new issue
Block a user