Merge pull request #19 from soundlogic2236/HEAD
Fixed Crash when reloading entries
This commit is contained in:
commit
f049cbfe9b
|
@ -36,6 +36,7 @@ public class AddEntry implements IUndoableAction {
|
|||
@Override
|
||||
public void undo() {
|
||||
Entry.category.entries.remove(Entry);
|
||||
BotaniaAPI.getAllEntries().remove(Entry);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -16,6 +16,7 @@ public class RemoveEntry implements IUndoableAction {
|
|||
@Override
|
||||
public void apply() {
|
||||
Entry.category.entries.remove(Entry);
|
||||
BotaniaAPI.getAllEntries().remove(Entry);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue