mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +00:00
Minor changes
This commit is contained in:
1 parent
17d0e20bdb
commit
0350eef398
5 files changed
+5
-19
No files matched your search
@@ -46,7 +46,6 @@ public class ClientConnectionHandler implements IConnectionHandler
|
||||
@Override
|
||||
public void connectionClosed(INetworkManager manager)
|
||||
{
|
||||
System.out.println("Left");
|
||||
voiceClient.stop();
|
||||
Mekanism.proxy.unloadSoundHandler();
|
||||
}
|
||||
|
||||
@@ -59,9 +59,7 @@ public class VoiceInput extends Thread
|
||||
|
||||
try {
|
||||
Thread.sleep(200L);
|
||||
} catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
} catch(Exception e) {}
|
||||
|
||||
doFlush = true;
|
||||
}
|
||||
@@ -73,9 +71,7 @@ public class VoiceInput extends Thread
|
||||
|
||||
try {
|
||||
Thread.sleep(20L);
|
||||
} catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
} catch(Exception e) {}
|
||||
}
|
||||
|
||||
audioInput.close();
|
||||
|
||||
@@ -14,10 +14,7 @@ import cpw.mods.fml.common.TickType;
|
||||
public class CommonPlayerTickHandler implements ITickHandler
|
||||
{
|
||||
@Override
|
||||
public void tickStart(EnumSet<TickType> type, Object... tickData)
|
||||
{
|
||||
|
||||
}
|
||||
public void tickStart(EnumSet<TickType> type, Object... tickData) {}
|
||||
|
||||
@Override
|
||||
public void tickEnd(EnumSet<TickType> type, Object... tickData)
|
||||
|
||||
@@ -16,10 +16,7 @@ import cpw.mods.fml.common.TickType;
|
||||
public class CommonWorldTickHandler implements ITickHandler
|
||||
{
|
||||
@Override
|
||||
public void tickStart(EnumSet<TickType> type, Object... tickData)
|
||||
{
|
||||
|
||||
}
|
||||
public void tickStart(EnumSet<TickType> type, Object... tickData) {}
|
||||
|
||||
@Override
|
||||
public void tickEnd(EnumSet<TickType> type, Object... tickData)
|
||||
|
||||
@@ -12,12 +12,9 @@ import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ItemMekanismArmor extends ItemArmor
|
||||
{
|
||||
protected EnumArmorMaterial material;
|
||||
|
||||
public ItemMekanismArmor(int id, EnumArmorMaterial enumarmormaterial, int renderIndex, int armorType)
|
||||
{
|
||||
super(id, enumarmormaterial, renderIndex, armorType);
|
||||
material = enumarmormaterial;
|
||||
setCreativeTab(Mekanism.tabMekanism);
|
||||
}
|
||||
|
||||
@@ -36,6 +33,6 @@ public class ItemMekanismArmor extends ItemArmor
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer)
|
||||
{
|
||||
return "mekanism:armor/" + material.name().toLowerCase() + "_" + layer + ".png";
|
||||
return "mekanism:armor/" + getArmorMaterial().name().toLowerCase() + "_" + layer + ".png";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user