Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portions of Mod don't work on server like Place, Mine, and Hurt #33

Closed
kgsbowtie opened this issue Jun 20, 2024 · 1 comment
Closed
Labels
bug Something isn't working duplicate This issue or pull request already exists
Milestone

Comments

@kgsbowtie
Copy link

When playing the mod on a server certain portions of the mod don't work such as Place (the onPlace function), Mine (the onBreak function), and Hurt (and the onHurt function). These functions don't seem to fire when playing on a server, but do fire on single player.

Mine (onHarvest) does work though, as does Attack (onAttack).

It seems that most things that extends net.minecraftforge.event.entity.player does work (AttackEntityEvent, PlayerEvent), and anything that extends anything else doesn't. Notable exceptions are: onItemPickup and onHurt.

These functions fire and work correctly in a single player world, but they do not fire and LOGGER.info messages do not appear in the logs when playing on a server world for those functions.

The issue seems to be that the server is waiting on something and needs to be told it needs to send this info to the client? I'm not exactly sure. I've posed what I believe might be some useful log information below.

[com.therainbowville.repack.org.eclipse.jetty.io.ChannelEndPoint/]: Key interests updated 0 -> 1 on SocketChannelEndPoint@591b6d4a{l=/127.0.0.1:49829,r=localhost/127.0.0.1:12345,OPEN,fill=FI,flush=-,to=0/300000}{io=1/1,kio=1,kro=1}->WebSocketClientConnection@6caec[s=ConnectionState@5138782d[OPENED],f=Flusher@116cd038[IDLE][queueSize=0,aggregateSize=-1,terminated=null],g=Generator[CLIENT,validating],p=Parser@3604a2d0[ExtensionStack,s=START,c=0,len=4,f=null]]
[20Jun2024 16:34:42.556] [WebSocketClient@1232502732-93/DEBUG] [com.therainbowville.repack.org.eclipse.jetty.io.ManagedSelector/]: updates 0
[20Jun2024 16:34:42.556] [WebSocketClient@1232502732-93/DEBUG] [com.therainbowville.repack.org.eclipse.jetty.io.ManagedSelector/]: Selector sun.nio.ch.KQueueSelectorImpl@164fe9b9 waiting with 1 keys
@RSwoop
Copy link
Member

RSwoop commented Aug 1, 2024

Thanks. This is related to #12. #34 should fix this I think.

@RSwoop RSwoop added bug Something isn't working duplicate This issue or pull request already exists labels Aug 1, 2024
@RSwoop RSwoop added this to the 0.5 milestone Aug 1, 2024
@RSwoop RSwoop closed this as completed Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants