mirror of
https://github.com/GeyserExtensionists/GeyserUtils.git
synced 2025-12-19 14:59:18 +00:00
fix error with latest Geyser
This commit is contained in:
Binary file not shown.
@@ -79,7 +79,7 @@
|
||||
<dependency>
|
||||
<groupId>org.geysermc.geyser</groupId>
|
||||
<artifactId>core</artifactId>
|
||||
<version>2.3.0-SNAPSHOT</version>
|
||||
<version>2.4.4-SNAPSHOT</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${project.basedir}/libs/Geyser-Standalone.jar</systemPath>
|
||||
</dependency>
|
||||
|
||||
@@ -339,7 +339,7 @@ public class GeyserUtils implements Extension {
|
||||
String particle = map.get(id);
|
||||
if (particle != null) {
|
||||
|
||||
int dimensionId = DimensionUtils.javaToBedrock(session.getDimension());
|
||||
int dimensionId = DimensionUtils.javaToBedrock(session);
|
||||
|
||||
SpawnParticleEffectPacket stringPacket = new SpawnParticleEffectPacket();
|
||||
stringPacket.setIdentifier(particle);
|
||||
@@ -463,7 +463,7 @@ public class GeyserUtils implements Extension {
|
||||
|
||||
} else if (customPacket instanceof CustomParticleEffectPayloadPacket customParticleEffectPacket) {
|
||||
SpawnParticleEffectPacket spawnParticleEffectPacket = new SpawnParticleEffectPacket();
|
||||
spawnParticleEffectPacket.setDimensionId(DimensionUtils.javaToBedrock(session.getDimension()));
|
||||
spawnParticleEffectPacket.setDimensionId(DimensionUtils.javaToBedrock(session));
|
||||
spawnParticleEffectPacket.setPosition(Converter.serializePos(customParticleEffectPacket.getPos()));
|
||||
spawnParticleEffectPacket.setIdentifier(customParticleEffectPacket.getParticle().identifier());
|
||||
spawnParticleEffectPacket.setMolangVariablesJson(Optional.ofNullable(customParticleEffectPacket.getParticle().molangVariablesJson()));
|
||||
|
||||
Reference in New Issue
Block a user