TODO entries

This commit is contained in:
riking 2014-06-03 18:21:28 -07:00
parent 6d6b766823
commit 46c63ed841
2 changed files with 2 additions and 0 deletions

View File

@ -181,6 +181,7 @@ public abstract class Disguise {
private int deadTicks = 0; private int deadTicks = 0;
private int refreshDisguise = 0; private int refreshDisguise = 0;
// TODO refactor
public void run() { public void run() {
// If entity is no longer valid. Remove it. // If entity is no longer valid. Remove it.
if (!getEntity().isValid()) { if (!getEntity().isValid()) {

View File

@ -70,6 +70,7 @@ public class FlagWatcher {
try { try {
cloned = getClass().getConstructor(Disguise.class).newInstance(owningDisguise); cloned = getClass().getConstructor(Disguise.class).newInstance(owningDisguise);
} catch (Exception e) { } catch (Exception e) {
// TODO: This will throw NPE
e.printStackTrace(); e.printStackTrace();
} }
cloned.entityValues = (HashMap<Integer, Object>) entityValues.clone(); cloned.entityValues = (HashMap<Integer, Object>) entityValues.clone();