mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
quick fixes : enhanced for loop
This commit is contained in:
1 parent
59f3b5b72a
commit
83f54f1e97
33 files changed
+74
-96
No files matched your search
@@ -156,13 +156,13 @@ public class Scythe extends Weapon {
|
||||
!= null) // && (block.blockMaterial == Material.leaves || block.isLeaves(world,
|
||||
// xPos, yPos, zPos)))
|
||||
{
|
||||
for (int iter = 0; iter < materials.length; iter++) {
|
||||
if (materials[iter] == localBlock.getMaterial()) {
|
||||
for (Material material : materials) {
|
||||
if (material == localBlock.getMaterial()) {
|
||||
if (!player.capabilities.isCreativeMode) {
|
||||
if (butter
|
||||
&& localBlock instanceof IShearable
|
||||
&& ((IShearable) localBlock)
|
||||
.isShearable(stack, player.worldObj, xPos, yPos, zPos)) {
|
||||
.isShearable(stack, player.worldObj, xPos, yPos, zPos)) {
|
||||
ArrayList<ItemStack> drops = ((IShearable) localBlock)
|
||||
.onSheared(
|
||||
stack,
|
||||
|
||||
Reference in new issue
Block a user