mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-11 03:17:13 +07:00
Bugfix for some null layers for barb cofs
This commit is contained in:
parent
8fa660f175
commit
3b9311b11e
@ -1632,10 +1632,11 @@ public class MPQViewer {
|
|||||||
Animation.Layer animLayer = delegate.getLayer(c);
|
Animation.Layer animLayer = delegate.getLayer(c);
|
||||||
DC old = animLayer != null ? animLayer.getDC() : null;
|
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);
|
COF.Layer layer = cof.getComponent(c);
|
||||||
if (clazz.equalsIgnoreCase("NONE")) {
|
if (clazz.equalsIgnoreCase("NONE")) {
|
||||||
delegate.setLayer(layer, null, false);
|
if (layer != null) delegate.setLayer(layer, null, false);
|
||||||
} else {
|
} 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);
|
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);
|
System.out.println(comp + "=" + dcc);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user