For v2.2.

This commit is contained in:
Jitse Boonstra
2019-10-20 20:04:38 +02:00
parent cd1115d2a3
commit 6f3f9b05d4
29 changed files with 475 additions and 47 deletions
@@ -284,6 +284,9 @@ public abstract class SimpleNPC implements NPC, PacketHandler {
case MAINHAND:
this.inHand = item;
break;
case OFFHAND:
this.offHand = item;
break;
default:
throw new IllegalArgumentException("Entered an invalid inventory slot");
}