mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 08:36:45 +01:00
Address comments
This commit is contained in:
parent
400f856c9a
commit
4b96a649f7
@ -181,13 +181,11 @@ public class ComponentPresetManager {
|
|||||||
}
|
}
|
||||||
allowedPresets.add(componentPreset);
|
allowedPresets.add(componentPreset);
|
||||||
}
|
}
|
||||||
final int size;
|
|
||||||
if (allowedPresets.isEmpty()) {
|
if (allowedPresets.isEmpty()) {
|
||||||
player.sendMessage(TranslatableCaption.of("preset.empty"));
|
player.sendMessage(TranslatableCaption.of("preset.empty"));
|
||||||
return null;
|
return null;
|
||||||
} else {
|
|
||||||
size = (int) Math.ceil((double) allowedPresets.size() / 9.0D);
|
|
||||||
}
|
}
|
||||||
|
final int size = (int) Math.ceil((double) allowedPresets.size() / 9.0D);
|
||||||
final PlotInventory plotInventory = new PlotInventory(this.inventoryUtil, player, size,
|
final PlotInventory plotInventory = new PlotInventory(this.inventoryUtil, player, size,
|
||||||
TranslatableCaption.of("preset.title").getComponent(player)) {
|
TranslatableCaption.of("preset.title").getComponent(player)) {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user