mirror of
https://github.com/zDevelopers/ImageOnMap.git
synced 2024-09-30 15:37:40 +02:00
Forget to remove print
This commit is contained in:
parent
0359740890
commit
6e90e68c19
@ -19,7 +19,6 @@
|
|||||||
package fr.moribus.imageonmap.ui;
|
package fr.moribus.imageonmap.ui;
|
||||||
|
|
||||||
import fr.moribus.imageonmap.map.PosterMap;
|
import fr.moribus.imageonmap.map.PosterMap;
|
||||||
import fr.zcraft.zlib.tools.PluginLogger;
|
|
||||||
import fr.zcraft.zlib.tools.world.FlatLocation;
|
import fr.zcraft.zlib.tools.world.FlatLocation;
|
||||||
import fr.zcraft.zlib.tools.world.WorldUtils;
|
import fr.zcraft.zlib.tools.world.WorldUtils;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
@ -118,7 +117,7 @@ public class PosterOnASurface {
|
|||||||
ItemFrame[] frames = new ItemFrame[map.getMapCount()];
|
ItemFrame[] frames = new ItemFrame[map.getMapCount()];
|
||||||
FlatLocation loc = location.clone();
|
FlatLocation loc = location.clone();
|
||||||
|
|
||||||
PluginLogger.info("loc = "+location+ " bf = "+bf);
|
|
||||||
|
|
||||||
int X=0;
|
int X=0;
|
||||||
int Y=0;
|
int Y=0;
|
||||||
@ -137,15 +136,11 @@ public class PosterOnASurface {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PluginLogger.info("max: X: "+X+" Y:"+Y);
|
|
||||||
for (int y = 0; y < Y; ++y) {
|
for (int y = 0; y < Y; ++y) {
|
||||||
for (int x = 0; x < X; ++x) {
|
for (int x = 0; x < X; ++x) {
|
||||||
PluginLogger.info("x: "+x+" y:"+y);
|
|
||||||
int mapIndex = map.getIndexAt(x, y);
|
int mapIndex = map.getIndexAt(x, y);
|
||||||
PluginLogger.info("map index "+mapIndex);
|
|
||||||
|
|
||||||
ItemFrame frame = getMapFrameAt(loc, map);
|
ItemFrame frame = getMapFrameAt(loc, map);
|
||||||
PluginLogger.info("frame= "+frame.getLocation());
|
|
||||||
if (frame != null)
|
if (frame != null)
|
||||||
frames[mapIndex] = frame;
|
frames[mapIndex] = frame;
|
||||||
switch (bf){
|
switch (bf){
|
||||||
|
@ -51,11 +51,8 @@ abstract public class SplatterMapManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static public ItemStack makeSplatterMap(PosterMap map) {
|
static public ItemStack makeSplatterMap(PosterMap map) {
|
||||||
String s="";
|
|
||||||
for(Byte b:I.t("Splatter Map").getBytes()){
|
|
||||||
s+=b+" ";
|
|
||||||
}
|
|
||||||
PluginLogger.info(""+s);
|
|
||||||
|
|
||||||
final ItemStack splatter = new ItemStackBuilder(Material.FILLED_MAP).title(ChatColor.GOLD, map.getName())
|
final ItemStack splatter = new ItemStackBuilder(Material.FILLED_MAP).title(ChatColor.GOLD, map.getName())
|
||||||
.title(ChatColor.DARK_GRAY, " - ").title(ChatColor.GRAY, I.t("Splatter Map"))
|
.title(ChatColor.DARK_GRAY, " - ").title(ChatColor.GRAY, I.t("Splatter Map"))
|
||||||
|
Loading…
Reference in New Issue
Block a user