samolego / GolfIV

An anti-exploit attempt for Fabric
https://modrinth.com/mod/golfiv
MIT License
49 stars 13 forks source link

unable to break blocks #73

Open SubwaySandw1ch opened 1 year ago

SubwaySandw1ch commented 1 year ago

Fabric server 1.19.4 golf Version: 0.63

When I ( as a server admin) go from creative to survival i am unable to break any more blocks.

When I rejoin, I am able to break blocks again.

However, I also found that without switching game modes, it randomly doesn't let me break any more blocks. while not switching game modes.

I have removed the mod for now.

Vanilla 1.19.4 client

samolego commented 1 year ago

Probably related to #72 . Seems like something has changed from .3 onwards

vachanmn123 commented 1 year ago

I was facing the same issue, but the issue seems to be after using a crafting table. I managed to fix the issue by changing the config checkInventoryActions to false.

My speculation is that maybe closing a crafting table doesn’t trigger an event for closing the inventory. I’m not sure though.

samolego commented 1 year ago

That makes sense, thanks for investigating

vachanmn123 commented 1 year ago

If you can point out where I can find the files to fix, I would be happy to contribute.

samolego commented 1 year ago

GođfIV listens for close inv packets, until they're sent, it blocks certain actions. It worked fine till now, sth must have changed with container / crafting closing