Skip to content

Quark's Pathfinder's Quill trade ignored by MoreJS #26

Description

@The-Goat-HUN

Minecraft Version

1.21.1

Mod Version

Quark 4.1-475, MoreJS 1.21.1-0.16.0

Describe the bug!

Image

Server script:

MoreJS.updateOffer(event => {
  const offer = event.getOffer()
  if (offer.firstCost && offer.firstCost.id === "minecraft:emerald") {
    offer.firstCost = Item.of("kubejs:gold_timecoin", offer.firstCost.count)
    event.setOffer(offer)
  }
  if (offer.secondCost && offer.secondCost.id === "minecraft:emerald") {
    offer.secondCost = Item.of("kubejs:gold_timecoin", offer.secondCost.count)
    event.setOffer(offer)
  }
   if (offer.output && offer.output.id === "quark:pathfinders_quill") {
    offer.firstCost = Item.of("kubejs:gold_timecoin", offer.firstCost.count)
    event.setOffer(offer)
  }
  if (offer.output && offer.output.id === "quark:pathfinders_quill") {
    offer.secondCost = Item.of("kubejs:gold_timecoin", offer.secondCost.count)
    event.setOffer(offer)
  }
})

Crash Report

No response

Log

https://gist.github.com/The-Goat-HUN/a905a8a083328dd9db35d06aefad6d11

Additions and Modifications

No

Additions and Modifications Description

No response

Did the issue happen in singleplayer or on a server?

Both

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions