Removed thunder from CoordLogger
SoundLocator already exists. SB Monky
This commit is contained in:
@@ -14,9 +14,7 @@ import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityType;
|
||||
import net.minecraft.entity.passive.TameableEntity;
|
||||
import net.minecraft.network.packet.s2c.play.EntityPositionS2CPacket;
|
||||
import net.minecraft.network.packet.s2c.play.PlaySoundS2CPacket;
|
||||
import net.minecraft.network.packet.s2c.play.WorldEventS2CPacket;
|
||||
import net.minecraft.sound.SoundEvents;
|
||||
import net.minecraft.text.BaseText;
|
||||
import net.minecraft.text.LiteralText;
|
||||
import net.minecraft.util.Formatting;
|
||||
@@ -29,7 +27,6 @@ public class CoordLogger extends Module {
|
||||
private final SettingGroup sgGeneral = settings.getDefaultGroup();
|
||||
private final SettingGroup sgTeleports = settings.createGroup("Teleports");
|
||||
private final SettingGroup sgWorldEvents = settings.createGroup("World Events");
|
||||
private final SettingGroup sgSounds = settings.createGroup("Sounds");
|
||||
|
||||
// General
|
||||
|
||||
@@ -91,15 +88,6 @@ public class CoordLogger extends Module {
|
||||
.build()
|
||||
);
|
||||
|
||||
// Sounds
|
||||
|
||||
private final Setting<Boolean> thunder = sgSounds.add(new BoolSetting.Builder()
|
||||
.name("thunder")
|
||||
.description("Logs thunder sounds.")
|
||||
.defaultValue(false)
|
||||
.build()
|
||||
);
|
||||
|
||||
public CoordLogger() {
|
||||
super(MeteorRejectsAddon.CATEGORY,"coord-logger", "Logs coordinates of various events. Might not work on Spigot/Paper servers.");
|
||||
}
|
||||
@@ -158,16 +146,6 @@ public class CoordLogger extends Module {
|
||||
if (otherEvents.get()) info(formatMessage("Unknown global event at ", worldEventS2CPacket.getPos()));
|
||||
}
|
||||
}
|
||||
|
||||
// Sounds
|
||||
} else if (thunder.get() && event.packet instanceof PlaySoundS2CPacket playSoundS2CPacket) {
|
||||
// Check for thunder sound
|
||||
if (playSoundS2CPacket.getSound() != SoundEvents.ENTITY_LIGHTNING_BOLT_IMPACT) return;
|
||||
|
||||
// Min distance
|
||||
if (PlayerUtils.distanceTo(playSoundS2CPacket.getX(), playSoundS2CPacket.getY(), playSoundS2CPacket.getZ()) <= minDistance.get()) return;
|
||||
|
||||
info("Thunder noise at %d %d %d", playSoundS2CPacket.getX(), playSoundS2CPacket.getY(), playSoundS2CPacket.getZ());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user