|
@@ -43,7 +43,7 @@ public class LogBlockHeatmapper
|
|
|
static int max=0;
|
|
|
static int maxx = 0;
|
|
|
static int maxy=0;
|
|
|
- static int targetBlockID=-1;
|
|
|
+ static String targetBlockID="";
|
|
|
static boolean removalsOnly=false;
|
|
|
static boolean placemode = false;
|
|
|
static BufferedImage gradient = new BufferedImage(1024,1,BufferedImage.TYPE_4BYTE_ABGR);
|
|
@@ -65,7 +65,7 @@ public class LogBlockHeatmapper
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- targetBlockID = Integer.valueOf(args[2]);
|
|
|
+ targetBlockID = (args[2]);
|
|
|
if(args.length>3)
|
|
|
{
|
|
|
removalsOnly = Boolean.valueOf(args[3]);
|
|
@@ -95,18 +95,24 @@ public class LogBlockHeatmapper
|
|
|
//4 als 5 und nen bisschen arithmetik gibt seitwärts-schnittansicht
|
|
|
//id_0 oldblox_1 newblox_2 newdv_3 X_4 height_5 y_6
|
|
|
//10 5 0 0 -1373 27 4008
|
|
|
+
|
|
|
+ //4 als 5 und nen bisschen arithmetik gibt seitwärts-schnittansicht
|
|
|
+ //id_0 filler oldblox_2 newblox_3 X_4 height_5 y_6
|
|
|
+ //10 5 0 0 -1373 27 4008
|
|
|
+
|
|
|
+
|
|
|
xx = xx.replace("\"", "");
|
|
|
xx = xx.replace(",", "\t");
|
|
|
String[] xes = xx.split("\\t");
|
|
|
int l = Integer.parseInt(xes[0]);
|
|
|
boolean register=false;
|
|
|
- int f = 0;//Integer.parseInt(xes[1]);
|
|
|
- int t = 1;//Integer.parseInt(xes[2]);
|
|
|
- if((targetBlockID<0||targetBlockID==f||targetBlockID==t))
|
|
|
+ String f = (xes[2]);
|
|
|
+ String t = (xes[3]);
|
|
|
+ if((targetBlockID.length()<2||targetBlockID.equals(f)||targetBlockID.equals(t)))
|
|
|
{
|
|
|
register=true;
|
|
|
}
|
|
|
- if(removalsOnly&&t==targetBlockID)
|
|
|
+ if(removalsOnly&&targetBlockID.equals(t))
|
|
|
{
|
|
|
register=false;
|
|
|
}
|