From f43440b680d010a8a5b914ef8ae9917e9ad54bcf Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sat, 15 Feb 2014 11:54:55 -0700 Subject: [PATCH] A per-layer regeneration algorithm for refreshing chunks. --- .../me/kaZep/Commands/commandBankEconomy.java | 49 +++++++++++++++++-- 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java b/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java index f1f8923..755ed54 100644 --- a/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java +++ b/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java @@ -655,8 +655,10 @@ public String convertToItemName(String val) { Location CenterPoint = new Location(p.getWorld(),1627,67,-268); //Center of Twoside. int iterations=100*(Integer.valueOf(args[1])+50); + List storedy = new ArrayList(); for (int MASTER_i=-Integer.valueOf(args[1]);MASTER_iUpdated this layer. ("+(int)(iterations/10000d*100)+"%)"); p.getWorld().unloadChunkRequest(chunkx2, chunkz2); }