mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
spotless
This commit is contained in:
1 parent
abda4a244b
commit
983ca22d97
65 files changed
+188
-305
No files matched your search
@@ -3,7 +3,6 @@ package tconstruct.library.tools;
|
||||
import cofh.api.energy.IEnergyContainerItem;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.eventhandler.Event.Result;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.minecraft.block.Block;
|
||||
@@ -145,13 +144,9 @@ public class AbilityHelper {
|
||||
|
||||
if (knockback > 0) {
|
||||
entity.addVelocity(
|
||||
-MathHelper.sin(player.rotationYaw * (float) Math.PI / 180.0F)
|
||||
* knockback
|
||||
* 0.5F,
|
||||
-MathHelper.sin(player.rotationYaw * (float) Math.PI / 180.0F) * knockback * 0.5F,
|
||||
0.1D,
|
||||
MathHelper.cos(player.rotationYaw * (float) Math.PI / 180.0F)
|
||||
* knockback
|
||||
* 0.5F);
|
||||
MathHelper.cos(player.rotationYaw * (float) Math.PI / 180.0F) * knockback * 0.5F);
|
||||
player.motionX *= 0.6D;
|
||||
player.motionZ *= 0.6D;
|
||||
player.setSprinting(false);
|
||||
@@ -387,9 +382,9 @@ public class AbilityHelper {
|
||||
tags.getCompoundTag("InfiTool").setInteger("Damage", damage + dam);
|
||||
int toolDamage = (damage * 100 / maxDamage) + 1;
|
||||
int stackDamage = stack.getItemDamage();
|
||||
//if (toolDamage != stackDamage) {
|
||||
// if (toolDamage != stackDamage) {
|
||||
// // stack.setItemDamage((damage * 100 / maxDamage) + 1);
|
||||
//}
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user