Remove debug code

This commit is contained in:
Sollace 2023-10-14 02:39:12 +01:00
parent 4b85a3d331
commit 09053bba93
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -45,7 +45,6 @@ import net.minecraft.predicate.entity.EntityPredicates;
import net.minecraft.registry.RegistryKeys; import net.minecraft.registry.RegistryKeys;
import net.minecraft.sound.SoundCategory; import net.minecraft.sound.SoundCategory;
import net.minecraft.sound.SoundEvent; import net.minecraft.sound.SoundEvent;
import net.minecraft.text.Text;
import net.minecraft.util.math.*; import net.minecraft.util.math.*;
import net.minecraft.world.dimension.DimensionType; import net.minecraft.world.dimension.DimensionType;
import net.minecraft.world.event.GameEvent; import net.minecraft.world.event.GameEvent;
@ -480,7 +479,6 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
} }
private void playSound(SoundEvent sound, float volume, float pitch) { private void playSound(SoundEvent sound, float volume, float pitch) {
entity.sendMessage(Text.literal((entity.getWorld().isClient ? "[Client]" : "[Server]") + "Playing " + sound));
entity.getWorld().playSoundFromEntity(entity, entity, sound, SoundCategory.PLAYERS, volume, pitch); entity.getWorld().playSoundFromEntity(entity, entity, sound, SoundCategory.PLAYERS, volume, pitch);
} }
@ -648,10 +646,6 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
boolean hovering = entity.getVelocity().horizontalLength() < 0.1; boolean hovering = entity.getVelocity().horizontalLength() < 0.1;
if (!entity.getWorld().isClient) {
entity.sendMessage(Text.literal("Jumping:" + pony.getJumpingHeuristic().getState()));
}
if (lastFlightType == FlightType.INSECTOID) { if (lastFlightType == FlightType.INSECTOID) {
descentRate = pony.getJumpingHeuristic().getState() ? -0.5F : 0; descentRate = pony.getJumpingHeuristic().getState() ? -0.5F : 0;
} else { } else {