@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/EntityItemFrame.java
|
||||
+++ b/net/minecraft/server/EntityItemFrame.java
|
||||
@@ -95,6 +95,11 @@
|
||||
@@ -108,6 +108,11 @@
|
||||
return false;
|
||||
} else if (!damagesource.isExplosion() && !this.getItem().isEmpty()) {
|
||||
if (!this.world.isClientSide) {
|
||||
@@ -12,7 +12,7 @@
|
||||
this.b(damagesource.getEntity(), false);
|
||||
this.a(SoundEffects.ENTITY_ITEM_FRAME_REMOVE_ITEM, 1.0F, 1.0F);
|
||||
}
|
||||
@@ -168,6 +173,12 @@
|
||||
@@ -193,6 +198,12 @@
|
||||
}
|
||||
|
||||
public void setItem(ItemStack itemstack, boolean flag) {
|
||||
@@ -25,10 +25,10 @@
|
||||
if (!itemstack.isEmpty()) {
|
||||
itemstack = itemstack.cloneItemStack();
|
||||
itemstack.setCount(1);
|
||||
@@ -175,7 +186,7 @@
|
||||
@@ -200,7 +211,7 @@
|
||||
}
|
||||
|
||||
this.getDataWatcher().set(EntityItemFrame.e, itemstack);
|
||||
this.getDataWatcher().set(EntityItemFrame.ITEM, itemstack);
|
||||
- if (!itemstack.isEmpty()) {
|
||||
+ if (!itemstack.isEmpty() && playSound) { // CraftBukkit
|
||||
this.a(SoundEffects.ENTITY_ITEM_FRAME_ADD_ITEM, 1.0F, 1.0F);
|
||||
|
||||
Reference in New Issue
Block a user