From 1db4108509b2aea04cdcdeec77122342575e4847 Mon Sep 17 00:00:00 2001 From: Zach Brown <1254957+zachbr@users.noreply.github.com> Date: Thu, 11 Sep 2014 20:33:37 -0500 Subject: [PATCH] Fix slime block sounds --- .../Implement-a-few-1.8-features.patch | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Implement-a-few-1.8-features.patch b/Spigot-Server-Patches/Implement-a-few-1.8-features.patch index 447eb32df0..7faba4e840 100644 --- a/Spigot-Server-Patches/Implement-a-few-1.8-features.patch +++ b/Spigot-Server-Patches/Implement-a-few-1.8-features.patch @@ -13,7 +13,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 public static final StepSound n = new StepSound("snow", 1.0F, 1.0F); public static final StepSound o = new StepSoundLadder("ladder", 1.0F, 1.0F); public static final StepSound p = new StepSoundAnvil("anvil", 0.3F, 1.0F); -+ public static final StepSound qS = new StepSound("slime", 1.0F, 1.0F); // Slime step sound ++ public static final StepSound qS = new StepSoundSlime("slime", 1.0F, 1.0F); // Slime step sound protected boolean q; protected int r; protected boolean s; @@ -954,4 +954,28 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 EnumFish[] aenumfish = EnumFish.values(); int i = aenumfish.length; +diff --git a/src/main/java/net/minecraft/server/StepSoundSlime.java b/src/main/java/net/minecraft/server/StepSoundSlime.java +new file mode 100644 +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 +--- /dev/null ++++ b/src/main/java/net/minecraft/server/StepSoundSlime.java +@@ -0,0 +0,0 @@ ++package net.minecraft.server; ++ ++public class StepSoundSlime extends StepSound { ++ ++ // Created by PaperSpigot for compatibility reasons, by no means is this necessarily the actual NMS representation ++ ++ public StepSoundSlime(String s, float f, float f1) { ++ super(s, f, f1); ++ } ++ ++ public String getBreakSound() { ++ return "mob.slime.big"; ++ } ++ ++ public String getPlaceSound() { ++ return "mob.slime.small"; ++ } ++} -- \ No newline at end of file