thomas15v / NoXray

Xray prevention plugin for sponge
MIT License
9 stars 1 forks source link

Players see phantom ores for a few milliseconds while digging #14

Open inklit opened 7 years ago

inklit commented 7 years ago

Players see phantom ores for a few milliseconds while digging normally. This is because of minor latency and such.

My suggested solution is to add a buffer between the stone and hidden ores.

For example a cut in half view would look something like this: (Note the 3 stone revealed buffer before it starts obfuscating the ores) This buffer should be configurable and should compensate for any latency that isnt severe. http://i.imgur.com/P1Zceye.png

thomas15v commented 7 years ago

When interacted with a block I update the blocks around the interacted block. What I could do is extend the update to a 2*2 sphere around the interacted block. It also depends on the latency of the client, witch is kinda hard to anticipate on.

inklit commented 7 years ago

Updating a 2*2 sphere should deal with the problem after initial digging, which is plenty enough.