Bug Items Duplicate

Started by MisterLuxo on Tue, 07/06/2021 - 21:44

Topic category: Help with modding (Java Edition)

Last seen on 14:00, 9. Jul 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Bug Items Duplicate
Tue, 07/06/2021 - 21:44

When i right clicked on the girl, she gives me more than 1 flower, when she should give me just 1.

https://www.youtube.com/watch?v=rSDoKXrMjwg

Bug

 

 

Last seen on 14:00, 9. Jul 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How can i fix that?
Tue, 07/06/2021 - 22:09

How can i fix that?

It's not as much of a bug as…
Wed, 07/07/2021 - 05:00

It's not as much of a bug as a limitation with procedures. To make procedures work both on servers and on clients, they need to be executed on both sides and sometimes that sadly leads to some side effects. You could try adding a check to test whether the procedure is executed on the server or client side and make sure you only run the server-side one.