mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
i'll fucking shoot somebody
This commit is contained in:
parent
749a65c4fe
commit
0ac2445329
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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) { }
|
||||
}
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user