mirror of
https://github.com/taoneill/war.git
synced 2025-02-25 15:51:37 +01:00
HelmetProtectionTask Code-Format
Return directly, so we have to indent one time less
This commit is contained in:
parent
1e8b1b8193
commit
bcfa109944
@ -23,7 +23,7 @@ public class HelmetProtectionTask implements Runnable {
|
||||
* @see Runnable.run()
|
||||
*/
|
||||
public void run() {
|
||||
if (War.war.isLoaded()) {
|
||||
if (!War.war.isLoaded()) return;
|
||||
for (Warzone zone : War.war.getWarzones()) {
|
||||
for (Team team : zone.getTeams()) {
|
||||
for (Player player : team.getPlayers()) {
|
||||
@ -77,7 +77,6 @@ public class HelmetProtectionTask implements Runnable {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private ItemStack createBlockHead(Team team) {
|
||||
return new ItemStack(team.getKind().getMaterial(), 1, (short) 1, new Byte(team.getKind().getData()));
|
||||
|
Loading…
Reference in New Issue
Block a user