Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-16 11:30:06 +01:00
f243a4024d
Removes PlayerMicroMoveEvent API, the ability to disable the AsyncCatcher, and the TeleportPassengerVehicleWithPlayer patch
38 Zeilen
1.5 KiB
Diff
38 Zeilen
1.5 KiB
Diff
From 21b00da362626c728267c4d2de150aa55f4bc798 Mon Sep 17 00:00:00 2001
|
|
From: Sudzzy <originmc@outlook.com>
|
|
Date: Tue, 14 Jul 2015 09:30:28 -0700
|
|
Subject: [PATCH] Disable mood sounds
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
|
index 30d94f5..9bf13b5 100644
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
|
@@ -2231,7 +2231,7 @@ public abstract class World implements IBlockAccess {
|
|
|
|
protected void a(int i, int j, Chunk chunk) {
|
|
this.methodProfiler.c("moodSound");
|
|
- if (this.L == 0 && !this.isClientSide) {
|
|
+ if (!this.paperSpigotConfig.disableMoodSounds && this.L == 0 && !this.isClientSide) { // PaperSpigot - Disable mood sounds
|
|
this.m = this.m * 3 + 1013904223;
|
|
int k = this.m >> 2;
|
|
int l = k & 15;
|
|
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
index 25e92f8..8e5de323 100644
|
|
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
@@ -378,4 +378,10 @@ public class PaperSpigotWorldConfig
|
|
{
|
|
disableIceAndSnow = getBoolean( "disable-ice-and-snow", false );
|
|
}
|
|
+
|
|
+ public boolean disableMoodSounds;
|
|
+ private void disableMoodSounds()
|
|
+ {
|
|
+ disableMoodSounds = getBoolean( "disable-mood-sounds", false );
|
|
+ }
|
|
}
|
|
--
|
|
2.5.1
|
|
|