Skip to content
Permalink
Browse files

Bugfix for some null layers for barb cofs

  • Loading branch information...
collinsmith committed May 5, 2019
1 parent 8fa660f commit 3b9311b11e2e015effd5e4c7a8b970380f7600f1
Showing with 3 additions and 2 deletions.
  1. +3 −2 mpqviewer/src/com/riiablo/mpq/MPQViewer.java
@@ -1632,10 +1632,11 @@ protected void changed(ChangeEvent event, Actor actor) {
Animation.Layer animLayer = delegate.getLayer(c);
DC old = animLayer != null ? animLayer.getDC() : null;

// FIXME: null layers and missing layers for some barb dual wield cofs -- temp fix ignore null layers
COF.Layer layer = cof.getComponent(c);
if (clazz.equalsIgnoreCase("NONE")) {
delegate.setLayer(layer, null, false);
} else {
if (layer != null) delegate.setLayer(layer, null, false);
} else if (layer != null) {
String dcc = String.format("data\\global\\%s\\%2$s\\%3$s\\%2$s%3$s%4$s%5$s%6$s.dcc", type, token, comp, clazz, mode, layer.weaponClass);
System.out.println(comp + "=" + dcc);

0 comments on commit 3b9311b

Please sign in to comment.
You can’t perform that action at this time.