mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-03 14:02:04 +01:00
Fixed two security issues from sonar
This commit is contained in:
parent
fa4c772572
commit
bbbe2565eb
@ -478,7 +478,7 @@ public class Flag implements Comparable<Flag> {
|
||||
private int cooldown;
|
||||
|
||||
// Mode
|
||||
public Mode mode = Mode.EXPERT;
|
||||
private Mode mode = Mode.EXPERT;
|
||||
|
||||
/**
|
||||
* Builder for making flags
|
||||
|
@ -42,7 +42,6 @@ public class ItemStackTypeAdapter extends TypeAdapter<ItemStack> {
|
||||
c.loadFromString(reader.nextString());
|
||||
return c.getItemStack("is");
|
||||
} catch (InvalidConfigurationException e) {
|
||||
e.printStackTrace();
|
||||
throw new IOException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user