3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-04 23:30:17 +01:00

Handle non-full blocks for Sniffer digging particles

This is how Java does it
Dieser Commit ist enthalten in:
AJ Ferguson 2023-05-19 21:11:43 -04:00
Ursprung 53ed40fde7
Commit 3e7f420532

Datei anzeigen

@ -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();