You shall compile!

This commit is contained in:
Camotoy 2024-06-10 16:53:14 -04:00
parent f954dd9b48
commit 02179a798f
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F
5 changed files with 4 additions and 6 deletions

View file

@ -74,7 +74,7 @@ public class JavaExplodeTranslator extends PacketTranslator<ClientboundExplodePa
// Not sure if the packet does anything - sending it just in case, because BDS still sends it.
// TODO move out of packet translator class
Particle particle;
if (!(packet.getRadius() < 2f) && packet.getBlockInteraction() == ExplosionInteraction.KEEP) {
if (!(packet.getRadius() < 2f) && packet.getBlockInteraction() != ExplosionInteraction.KEEP) {
particle = packet.getLargeExplosionParticles();
} else {
particle = packet.getSmallExplosionParticles();

View file

@ -68,7 +68,6 @@ public class JavaLevelEventTranslator extends PacketTranslator<ClientboundLevelE
// Prioritize level events because it makes parrots dance.
SoundMapping mapping = Registries.SOUNDS.get(jukeboxSong.soundEvent().replace("minecraft:", ""));
System.out.println(jukeboxSong.soundEvent() + " " + mapping);
SoundEvent soundEvent = null;
if (mapping != null) {
String bedrock = mapping.getBedrock();

View file

@ -177,7 +177,6 @@ public class JavaLevelParticlesTranslator extends PacketTranslator<ClientboundLe
}
default -> {
ParticleMapping particleMapping = Registries.PARTICLES.get(particle.getType());
System.out.println(particle.getType() + " " + particleMapping);
if (particleMapping == null) { //TODO ensure no particle can be null
return null;
}

@ -1 +1 @@
Subproject commit 1f1d5ce8c482dac142f13e95e19368e3f36de144
Subproject commit 54705bcd2bcba830267efbb1fbfd4e52972c40f7