mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 01:39:52 +03:00
22 lines
956 B
Diff
22 lines
956 B
Diff
--- ../src-base/minecraft/net/minecraft/item/ItemRecord.java
|
|
+++ ../src-work/minecraft/net/minecraft/item/ItemRecord.java
|
|
@@ -26,6 +26,7 @@
|
|
private static final Map<SoundEvent, ItemRecord> RECORDS = Maps.<SoundEvent, ItemRecord>newHashMap();
|
|
private final SoundEvent sound;
|
|
private final String displayName;
|
|
+ public boolean playAfter = false;
|
|
|
|
protected ItemRecord(String p_i46742_1_, SoundEvent soundIn)
|
|
{
|
|
@@ -46,9 +47,8 @@
|
|
{
|
|
ItemStack itemstack = player.getHeldItem(hand);
|
|
((BlockJukebox)Blocks.JUKEBOX).insertRecord(worldIn, pos, iblockstate, itemstack);
|
|
- worldIn.playEvent((EntityPlayer)null, 1010, pos, Item.getIdFromItem(this));
|
|
+ playAfter = true; // CatServer - handle in ForgeHook
|
|
itemstack.shrink(1);
|
|
- player.addStat(StatList.RECORD_PLAYED);
|
|
}
|
|
|
|
return EnumActionResult.SUCCESS;
|