mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-29 19:46:42 +00:00
Fixes for Codacy;
These fixes are designed to satisfy codacy. However, codacy reports a NPath Complexity of 649, whereas the current, recommended, and standardized threshold is 200. This is caused by FreedomCommand#execute(CommandSender, String, String[]);
This commit is contained in:
@ -126,7 +126,7 @@ public class CageData
|
||||
this.innerMaterial = inner;
|
||||
input = null;
|
||||
|
||||
buildHistory(location, fPlayer);
|
||||
buildHistory(location);
|
||||
regenerate();
|
||||
}
|
||||
|
||||
@ -143,7 +143,7 @@ public class CageData
|
||||
this.innerMaterial = inner;
|
||||
CageData.input = input;
|
||||
|
||||
buildHistory(location, fPlayer);
|
||||
buildHistory(location);
|
||||
regenerate();
|
||||
}
|
||||
|
||||
@ -197,7 +197,7 @@ public class CageData
|
||||
}
|
||||
}
|
||||
|
||||
private void buildHistory(Location location, FPlayer playerdata)
|
||||
private void buildHistory(Location location)
|
||||
{
|
||||
final Block center = location.getBlock();
|
||||
for (int xOffset = -2; xOffset <= 2; xOffset++)
|
||||
|
Reference in New Issue
Block a user