mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Handle non-full blocks for Sniffer digging particles
This is how Java does it
This commit is contained in:
parent
53ed40fde7
commit
3e7f420532
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ public class SnifferEntity extends AnimalEntity implements Tickable {
|
|||
// The java client renders digging particles on its own, but bedrock does not
|
||||
if (digTicks > 0 && --digTicks < DIG_START && digTicks % 5 == 0) {
|
||||
Vector3f rot = Vector3f.createDirectionDeg(0, -getYaw()).mul(2.25f);
|
||||
Vector3f pos = getPosition().add(rot);
|
||||
Vector3f pos = getPosition().add(rot).up(0.2f).floor(); // Handle non-full blocks
|
||||
int blockId = session.getBlockMappings().getBedrockBlockId(session.getGeyser().getWorldManager().getBlockAt(session, pos.toInt().down()));
|
||||
|
||||
LevelEventPacket levelEventPacket = new LevelEventPacket();
|
||||
|
|
Loading…
Reference in a new issue