mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-28 07:55:53 +00:00
Pickup notification
This commit is contained in:
1 parent
2171c0caa4
commit
90a7c8f787
7 files changed
+71
-1
No files matched your search
@@ -0,0 +1,20 @@
|
||||
--- ../src-base/common/net/minecraft/src/EntityItem.java
|
||||
+++ ../src-work/common/net/minecraft/src/EntityItem.java
|
||||
@@ -1,6 +1,8 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.util.Iterator;
|
||||
+
|
||||
+import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class EntityItem extends Entity
|
||||
{
|
||||
@@ -225,6 +227,8 @@
|
||||
p_70100_1_.func_71029_a(AchievementList.field_76027_z);
|
||||
}
|
||||
|
||||
+ GameRegistry.onPickupNotification(p_70100_1_, this);
|
||||
+
|
||||
this.field_70170_p.func_72956_a(this, "random.pop", 0.2F, ((this.field_70146_Z.nextFloat() - this.field_70146_Z.nextFloat()) * 0.7F + 1.0F) * 2.0F);
|
||||
p_70100_1_.func_71001_a(this, var2);
|
||||
|
||||
Reference in new issue
Block a user