The newInstance Method of SpectatorData now returns an AdvancedPosition object to prevent IllegalStateExceptions from occurring when using the toString() method on the SpectatorData object without an entityID
This commit is contained in:
@@ -49,8 +49,8 @@ public class SpectatorData extends AdvancedPosition {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SpectatorData newInstance() {
|
public AdvancedPosition newInstance() {
|
||||||
return new SpectatorData();
|
return new AdvancedPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user