i'll fucking shoot somebody

This commit is contained in:
Bob 2023-06-26 19:52:36 +02:00
parent 749a65c4fe
commit 0ac2445329
3 changed files with 9 additions and 1 deletions

View File

@ -1988,5 +1988,10 @@ public class ClientProxy extends ServerProxy {
public boolean getImpact(World world) {
return ImpactWorldHandler.getImpactForClient(world);
}
@Override
public void playSoundFuckMojang(double x, double y, double z, String sound, float volume, float pitch) {
Minecraft.getMinecraft().getSoundHandler().playSound(new PositionedSoundRecord(new ResourceLocation(sound), volume, pitch, (float) x, (float) y, (float) z));
}
}

View File

@ -84,4 +84,6 @@ public class ServerProxy {
public boolean getImpact(World world) {
return TomSaveData.forWorld(world).impact;
}
public void playSoundFuckMojang(double x, double y, double z, String sound, float volume, float pitch) { }
}

View File

@ -11,6 +11,7 @@ import com.hbm.inventory.recipes.CompressorRecipes;
import com.hbm.inventory.recipes.CompressorRecipes.CompressorRecipe;
import com.hbm.items.machine.ItemMachineUpgrade.UpgradeType;
import com.hbm.lib.Library;
import com.hbm.main.MainRegistry;
import com.hbm.tileentity.IGUIProvider;
import com.hbm.tileentity.TileEntityMachineBase;
import com.hbm.util.Tuple.Pair;
@ -133,7 +134,7 @@ public class TileEntityMachineCompressor extends TileEntityMachineBase implement
if(this.pistonDir) {
this.piston -= randSpeed;
if(this.piston <= 0) {
Minecraft.getMinecraft().getSoundHandler().playSound(new PositionedSoundRecord(new ResourceLocation("hbm:item.boltgun"), 0.5F, 0.75F, xCoord, yCoord, zCoord));
MainRegistry.proxy.playSoundFuckMojang(xCoord, yCoord, zCoord, "hbm:item.boltgun", 0.5F, 0.75F);
this.pistonDir = !this.pistonDir;
}
} else {