mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 20:22:36 +00:00
quick fix : 'if' statement with identical branches
This commit is contained in:
1 parent
5a1c3a4dfd
commit
6a88c6a5e1
16 files changed
+39
-84
No files matched your search
@@ -355,11 +355,10 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
+ (this.minecartPitch - (double) this.rotationPitch) / (double) this.turnProgress);
|
||||
--this.turnProgress;
|
||||
this.setPosition(var46, var48, var5);
|
||||
this.setRotation(this.rotationYaw, this.rotationPitch);
|
||||
} else {
|
||||
this.setPosition(this.posX, this.posY, this.posZ);
|
||||
this.setRotation(this.rotationYaw, this.rotationPitch);
|
||||
}
|
||||
this.setRotation(this.rotationYaw, this.rotationPitch);
|
||||
} else {
|
||||
this.prevPosX = this.posX;
|
||||
this.prevPosY = this.posY;
|
||||
@@ -753,20 +752,16 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
public ItemStack decrStackSize(int par1, int par2) {
|
||||
if (this.cargoItems[par1] != null) {
|
||||
ItemStack var3;
|
||||
|
||||
if (this.cargoItems[par1].stackSize <= par2) {
|
||||
var3 = this.cargoItems[par1];
|
||||
this.cargoItems[par1] = null;
|
||||
return var3;
|
||||
} else {
|
||||
var3 = this.cargoItems[par1].splitStack(par2);
|
||||
|
||||
if (this.cargoItems[par1].stackSize == 0) {
|
||||
this.cargoItems[par1] = null;
|
||||
}
|
||||
|
||||
return var3;
|
||||
}
|
||||
return var3;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user