Fix thermal generator texture and adjust nanosaber speed
This commit is contained in:
parent
b0fda3c4da
commit
29c43ddd99
3 changed files with 10 additions and 9 deletions
|
@ -43,17 +43,17 @@ public class BlockThermalGenerator extends BlockMachineBase implements IAdvanced
|
|||
|
||||
@Override
|
||||
public String getFront(boolean isActive) {
|
||||
return isActive ? prefix + "thermal_generator_side_on" : prefix + "matter_fabricator_off";
|
||||
return isActive ? prefix + "thermal_generator_side_on" : prefix + "thermal_generator_side_off";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSide(boolean isActive) {
|
||||
return isActive ? prefix + "thermal_generator_side_on" : prefix + "matter_fabricator_off";
|
||||
return isActive ? prefix + "thermal_generator_side_on" : prefix + "thermal_generator_side_off";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTop(boolean isActive) {
|
||||
return isActive ? prefix + "thermal_generator_top_on" : prefix + "matter_fabricator_off";
|
||||
return isActive ? prefix + "thermal_generator_top_on" : prefix + "thermal_generator_top_off";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -54,13 +54,14 @@ public class ItemNanosaber extends ItemSword implements IEnergyItemInfo, ITextur
|
|||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
|
||||
if(stack.getItemDamage()==0){
|
||||
stack.setItemDamage(1);
|
||||
ItemStack newStack = stack.copy();
|
||||
if(newStack.getItemDamage()==0){
|
||||
newStack.setItemDamage(1);
|
||||
}
|
||||
if(stack.getItemDamage()==1){
|
||||
stack.setItemDamage(0);
|
||||
if(newStack.getItemDamage()==1){
|
||||
newStack.setItemDamage(0);
|
||||
}
|
||||
return stack;
|
||||
return newStack;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":4
|
||||
"frametime":2
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue