mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 15:23:16 +00:00
Fixed PlayerSound fade effect
This commit is contained in:
1 parent
9db789674a
commit
71420a2550
4 files changed
+8
-8
No files matched your search
@@ -12,8 +12,8 @@ public class GasMaskSound extends PlayerSound
|
||||
{
|
||||
super(player, new ResourceLocation("mekanism", "item.gasMask"));
|
||||
|
||||
setFadeIn(30);
|
||||
setFadeOut(10);
|
||||
setFadeIn(10);
|
||||
setFadeOut(5);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -12,8 +12,8 @@ public class JetpackSound extends PlayerSound
|
||||
{
|
||||
super(player, new ResourceLocation("mekanism", "item.jetpack"));
|
||||
|
||||
setFadeIn(30);
|
||||
setFadeOut(10);
|
||||
setFadeIn(10);
|
||||
setFadeOut(5);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -45,13 +45,13 @@ public abstract class PlayerSound extends Sound implements IResettableSound
|
||||
|
||||
public PlayerSound setFadeIn(int fade)
|
||||
{
|
||||
fadeIn = Math.min(0, fade);
|
||||
fadeIn = Math.max(0, fade);
|
||||
return this;
|
||||
}
|
||||
|
||||
public PlayerSound setFadeOut(int fade)
|
||||
{
|
||||
fadeOut = Math.min(0, fade);
|
||||
fadeOut = Math.max(0, fade);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@@ -50,8 +50,6 @@ public class GuiReactorController extends GuiMekanism
|
||||
@Override
|
||||
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
|
||||
{
|
||||
super.drawGuiContainerForegroundLayer(mouseX, mouseY);
|
||||
|
||||
fontRendererObj.drawString(tileEntity.getInventoryName(), 46, 6, 0x404040);
|
||||
|
||||
if(tileEntity.getActive())
|
||||
@@ -61,6 +59,8 @@ public class GuiReactorController extends GuiMekanism
|
||||
else {
|
||||
fontRendererObj.drawString(MekanismUtils.localize("gui.incomplete"), 8, 16, 0x404040);
|
||||
}
|
||||
|
||||
super.drawGuiContainerForegroundLayer(mouseX, mouseY);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user