fix typo in RegisteredMethods remove() (#199)

This commit is contained in:
Ben Fry
2021-06-14 16:52:41 -04:00
parent 0c47ba441a
commit 93cb502053

View File

@@ -1416,7 +1416,7 @@ public class PApplet implements PConstants {
* Does not shrink array afterwards, silently returns if method not found.
*/
public void remove(Object object) {
if (removals != null) {
if (removals == null) {
entries.remove(object);
} else {
// Currently iterating the list of methods, remove this afterwards