Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
Handle non-full blocks for Sniffer digging particles
This is how Java does it
Dieser Commit ist enthalten in:
Ursprung
53ed40fde7
Commit
3e7f420532
@ -102,7 +102,7 @@ public class SnifferEntity extends AnimalEntity implements Tickable {
|
|||||||
// The java client renders digging particles on its own, but bedrock does not
|
// The java client renders digging particles on its own, but bedrock does not
|
||||||
if (digTicks > 0 && --digTicks < DIG_START && digTicks % 5 == 0) {
|
if (digTicks > 0 && --digTicks < DIG_START && digTicks % 5 == 0) {
|
||||||
Vector3f rot = Vector3f.createDirectionDeg(0, -getYaw()).mul(2.25f);
|
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()));
|
int blockId = session.getBlockMappings().getBedrockBlockId(session.getGeyser().getWorldManager().getBlockAt(session, pos.toInt().down()));
|
||||||
|
|
||||||
LevelEventPacket levelEventPacket = new LevelEventPacket();
|
LevelEventPacket levelEventPacket = new LevelEventPacket();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren