2015-08-05 08:24:47 +08:00
|
|
|
From 6c20111c656352bb5d39c290223c637b1c197470 Mon Sep 17 00:00:00 2001
|
2015-07-15 00:34:10 +08:00
|
|
|
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
|
2015-08-05 08:24:47 +08:00
|
|
|
index 8ec26ea..65fc9c1 100644
|
2015-07-15 00:34:10 +08:00
|
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
2015-08-05 08:24:47 +08:00
|
|
|
@@ -2231,7 +2231,7 @@ public abstract class World implements IBlockAccess {
|
2015-07-15 00:34:10 +08:00
|
|
|
|
|
|
|
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 03d3705..2371123 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 );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
2015-08-05 08:24:47 +08:00
|
|
|
2.4.6.windows.1
|
2015-07-15 00:34:10 +08:00
|
|
|
|