clean some of the most frequent copy constructor / copy method (#11053)

This commit is contained in:
Susucre 2023-08-31 01:48:03 +02:00 committed by GitHub
parent 5ddb69e1ba
commit 96a2c277b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
66 changed files with 132 additions and 134 deletions

View file

@ -19,7 +19,7 @@ public abstract class SearchEffect extends OneShotEffect {
this.target = target;
}
public SearchEffect(SearchEffect effect) {
protected SearchEffect(final SearchEffect effect) {
super(effect);
this.target = effect.target.copy();
}