public void typemod(Indir<Resource> t, double a) { updt = true; for (TypeMod m : mods) { if (m.t == t) { m.a = a; m.ra = null; return; } } mods.add(new TypeMod(t, a)); }