mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-27 12:35:17 +01:00
Typo
This commit is contained in:
parent
d0f1dce859
commit
4fb240f15e
@ -31,7 +31,7 @@ public class StackingTask extends BukkitRunnable {
|
|||||||
private int maxEntityStackSize = Setting.MAX_STACK_ENTITIES.getInt();
|
private int maxEntityStackSize = Setting.MAX_STACK_ENTITIES.getInt();
|
||||||
private int minEntityStackSize = Setting.MIN_STACK_ENTITIES.getInt();
|
private int minEntityStackSize = Setting.MIN_STACK_ENTITIES.getInt();
|
||||||
|
|
||||||
private int minPerTypeStacksPerChunk = Setting.MIN_PER_TYPE_STACKS_PER_CHUNK.getInt();
|
private int maxPerTypeStacksPerChunk = Setting.MAX_PER_TYPE_STACKS_PER_CHUNK.getInt();
|
||||||
|
|
||||||
public StackingTask(UltimateStacker plugin) {
|
public StackingTask(UltimateStacker plugin) {
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
@ -119,8 +119,8 @@ public class StackingTask extends BukkitRunnable {
|
|||||||
// Is this entity stacked?
|
// Is this entity stacked?
|
||||||
boolean isStack = stack != null;
|
boolean isStack = stack != null;
|
||||||
|
|
||||||
if (isStack && minPerTypeStacksPerChunk != -1) {
|
if (isStack && maxPerTypeStacksPerChunk != -1) {
|
||||||
if (plugin.getEntityUtils().getSimilarStacksInChunk(livingEntity) > minPerTypeStacksPerChunk) {
|
if (plugin.getEntityUtils().getSimilarStacksInChunk(livingEntity) > maxPerTypeStacksPerChunk) {
|
||||||
stack.setAmount(1);
|
stack.setAmount(1);
|
||||||
livingEntity.remove();
|
livingEntity.remove();
|
||||||
this.processed.add(livingEntity.getUniqueId());
|
this.processed.add(livingEntity.getUniqueId());
|
||||||
|
@ -34,8 +34,8 @@ public enum Setting {
|
|||||||
"The minimum amount required before a stack can be formed.",
|
"The minimum amount required before a stack can be formed.",
|
||||||
"Do not set this to lower than 2."),
|
"Do not set this to lower than 2."),
|
||||||
|
|
||||||
MIN_PER_TYPE_STACKS_PER_CHUNK("Entities.Min Per Type Stacks Per Chunk", -1,
|
MAX_PER_TYPE_STACKS_PER_CHUNK("Entities.Max Per Type Stacks Per Chunk", -1,
|
||||||
"The minimum amount of each entity type stack allowed in a chunk."),
|
"The maximum amount of each entity type stack allowed in a chunk."),
|
||||||
|
|
||||||
STACK_WHOLE_CHUNK("Entities.Stack Whole Chunk", false,
|
STACK_WHOLE_CHUNK("Entities.Stack Whole Chunk", false,
|
||||||
"Should all qualifying entities in each chunk be stacked?",
|
"Should all qualifying entities in each chunk be stacked?",
|
||||||
|
Loading…
Reference in New Issue
Block a user