Fix missing blocks in schematic bug

This commit is contained in:
Daniel Mills 2020-01-19 07:23:17 -05:00
parent 2ea1bd5e67
commit ace5abea23
2 changed files with 8 additions and 5 deletions

View File

@ -254,6 +254,11 @@ public class WandController implements IrisController
p.sendMessage(C.GRAY + "Var: " + C.DARK_AQUA + F.f(g.getSuccesses()) + C.GRAY + " of " + C.AQUA + F.f(g.getPlaces()) + C.GRAY + " placements (" + C.DARK_AQUA + F.pc(g.getSuccess(), 0) + C.GRAY + ")"); p.sendMessage(C.GRAY + "Var: " + C.DARK_AQUA + F.f(g.getSuccesses()) + C.GRAY + " of " + C.AQUA + F.f(g.getPlaces()) + C.GRAY + " placements (" + C.DARK_AQUA + F.pc(g.getSuccess(), 0) + C.GRAY + ")");
for(String i : ggg.getFlags())
{
p.sendMessage(C.GRAY + "- " + C.DARK_PURPLE + i);
}
draw(new Location[] {point.clone().add(g.getW() / 2, g.getH() / 2, g.getD() / 2), point.clone().subtract(g.getW() / 2, g.getH() / 2, g.getD() / 2) draw(new Location[] {point.clone().add(g.getW() / 2, g.getH() / 2, g.getD() / 2), point.clone().subtract(g.getW() / 2, g.getH() / 2, g.getD() / 2)
}, p); }, p);
} }

View File

@ -476,12 +476,10 @@ public class GenObject
MB a = MB.of(g[1]); MB a = MB.of(g[1]);
boolean specific = g[1].contains(":"); boolean specific = g[1].contains(":");
MB b = MB.of(g[2]); MB b = MB.of(g[2]);
GMap<SBlockVector, MB> m = new GMap<>();
m.putAll(s); for(SBlockVector i : s.k())
s.clear();
for(SBlockVector i : m.keySet())
{ {
MB c = m.get(i); MB c = s.get(i);
if((specific && c.equals(a)) || c.material.equals(a.material)) if((specific && c.equals(a)) || c.material.equals(a.material))
{ {