Jump to content

PlayerInteractEvent useBlock and useItem server only ?


Deatrathias

Recommended Posts

I was looking at the PlayerInteractEvent, and I noticed that "useBlock" and "useItem" are used in ItemInWorldManager (the server part) but not in PlayerControllerMP (the client part). Instead, it only checks if the event is canceled or not.

I was wondering if there is a reason for that or if it's a bug. Currently, setting useBlock to false will not stop the client from right-clicking a block. For instance the client can open a GUI but since the GuiContainer is not created on the server, the GUI is not functional. Same thing for doors, you can open them but not go through them since they are closed on the server.

This strange behaviors make me think that it's actually a bug, or maybe I just don't get how they should be used.

So I just wanted to know if it's intended or if a fix has to be made.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.