mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
quick fix : Statement with empty body
This commit is contained in:
1 parent
3f0854baeb
commit
fbccf4e087
12 files changed
+63
-51
No files matched your search
@@ -110,9 +110,9 @@ public class EntityLandmineFirework extends Entity {
|
||||
float f = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ);
|
||||
this.rotationYaw = (float) (Math.atan2(this.motionX, this.motionZ) * 180.0D / Math.PI);
|
||||
|
||||
for (this.rotationPitch = (float) (Math.atan2(this.motionY, f) * 180.0D / Math.PI);
|
||||
this.rotationPitch - this.prevRotationPitch < -180.0F;
|
||||
this.prevRotationPitch -= 360.0F) {
|
||||
this.rotationPitch = (float) (Math.atan2(this.motionY, f) * 180.0D / Math.PI);
|
||||
while (this.rotationPitch - this.prevRotationPitch < -180.0F) {
|
||||
this.prevRotationPitch -= 360.0F;
|
||||
}
|
||||
|
||||
while (this.rotationPitch - this.prevRotationPitch >= 180.0F) {
|
||||
|
||||
@@ -35,11 +35,11 @@ public class BehaviorFirework extends Behavior {
|
||||
boolean shouldRun = true;
|
||||
if (triggerer instanceof EntityPlayer) {
|
||||
EntityPlayer player = (EntityPlayer) triggerer;
|
||||
if (player.capabilities.isCreativeMode) {
|
||||
//if (player.capabilities.isCreativeMode) {
|
||||
// Remove the bellow comment to make the player in creative
|
||||
// mode not get launched
|
||||
// shouldRun = false;
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
if (shouldRun) {
|
||||
|
||||
+2
-2
@@ -39,11 +39,11 @@ public class SpecialStackHandlerRocketFireball extends SpecialStackHandler {
|
||||
boolean shouldRun = true;
|
||||
if (triggerer instanceof EntityPlayer) {
|
||||
EntityPlayer player = (EntityPlayer) triggerer;
|
||||
if (player.capabilities.isCreativeMode) {
|
||||
//if (player.capabilities.isCreativeMode) {
|
||||
// Remove the bellow comment to make the player in
|
||||
// creative mode not get launched
|
||||
// shouldRun = false;
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
if (shouldRun) {
|
||||
|
||||
Reference in new issue
Block a user