Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Create accessory using stack size of 1
Browse files Browse the repository at this point in the history
  • Loading branch information
percivalalb committed Mar 21, 2021
1 parent 5d6cf7b commit ca131e2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -40,7 +40,7 @@ public ActionResultType processInteract(AbstractDogEntity dogIn, World worldIn,
RegistryObject<? extends Accessory> associatedAccessory = MAPPING.get(stack.getItem().delegate);

if (associatedAccessory != null) {
AccessoryInstance inst = associatedAccessory.get().createFromStack(stack);
AccessoryInstance inst = associatedAccessory.get().createFromStack(stack.copy().split(1));

if (dogIn.addAccessory(inst)) {
dogIn.consumeItemFromStack(playerIn, stack);
Expand Down

0 comments on commit ca131e2

Please sign in to comment.