1.19-pre1

This commit is contained in:
gnembon committed 2022-05-18 21:08:32 +02:00
1 parent bbe770184e
commit 2af763d029
3 files changed
+9 -13

No files matched your search

@@ -16,6 +16,7 @@ import net.minecraft.server.level.ServerPlayer;
import net.minecraft.server.players.GameProfileCache;
import net.minecraft.world.damagesource.DamageSource;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.player.ProfilePublicKey;
import net.minecraft.world.food.FoodData;
@@ -108,9 +109,9 @@ public class EntityPlayerMPFake extends ServerPlayer
}
@Override
protected void equipEventAndSound(ItemStack stack, boolean sendGameEvent)
public void onEquipItem(final EquipmentSlot slot, final ItemStack stack)
{
if (!isUsingItem()) super.equipEventAndSound(stack, sendGameEvent);
if (!isUsingItem()) super.onEquipItem(slot, stack);
}
@Override