mojira.dev
MC-9855

Sword taking damage when hitting another player with it when pvp is set to false

Iron sword taking damage when hitting another player with it when pvp is set to false

What I expected to happen was...:
I did expect that when I hit other player (in server) with iron sword when server's pvp is set to false, sword shouldn't take damage at all.

What actually happened was...:
When I hit my friend with my iron sword, my sword took damage.

Steps to Reproduce:
1. Me and my friend were playing on our server (pvp false). Our client and server version were 13w07a.
2. I had iron sword with only three uses left.
3. I hit my friend with sword three times and it broke.

You should also notice:
I'm not any kind of expert, but I think this would be pretty important bugfix because usually, in non-pvp servers, people hits each other with sword, for fun.

Related issues

Comments

migrated

Duplicate of MC-4732, please use the search function to see if your bug has already been submitted. Currently over 51% of tickets are being closed as duplicate.

migrated

(Unassigned)

Unconfirmed

multiplayer, server

Snapshot 13w07a

Retrieved