2016-01-17 04:04:07 +01:00
|
|
|
From d7b725f84544da3633918ede5a0d708504bb80c8 Mon Sep 17 00:00:00 2001
|
2015-07-14 18:34:10 +02: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-10-17 04:43:03 +02:00
|
|
|
index 68cb798..64713bd 100644
|
2015-07-14 18:34:10 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
2015-10-17 04:43:03 +02:00
|
|
|
@@ -2248,7 +2248,7 @@ public abstract class World implements IBlockAccess {
|
2015-07-14 18:34:10 +02: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
|
2016-01-17 04:04:07 +01:00
|
|
|
index da5030a..469b620 100644
|
2015-07-14 18:34:10 +02:00
|
|
|
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
|
|
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
2016-01-17 04:04:07 +01:00
|
|
|
@@ -346,4 +346,10 @@ public class PaperSpigotWorldConfig
|
2015-07-14 18:34:10 +02:00
|
|
|
{
|
|
|
|
disableIceAndSnow = getBoolean( "disable-ice-and-snow", false );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean disableMoodSounds;
|
|
|
|
+ private void disableMoodSounds()
|
|
|
|
+ {
|
|
|
|
+ disableMoodSounds = getBoolean( "disable-mood-sounds", false );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
2016-01-17 04:04:07 +01:00
|
|
|
2.7.0
|
2015-07-14 18:34:10 +02:00
|
|
|
|