fixed stupid mistake in last commit
This commit is contained in:
parent
9c5a3b031f
commit
6b8d50d055
@ -56,7 +56,7 @@ public class StarPointControl extends BaseControl {
|
||||
|
||||
@Override
|
||||
protected void controlUpdate(float tpf) {
|
||||
if (spatial.getUserData(UserDataKeys.RUNNING)) {
|
||||
if (player.getUserData(UserDataKeys.RUNNING)) {
|
||||
if ((Boolean) spatial.getUserData(UserDataKeys.HITTED) && !isHitted) {
|
||||
player.setUserData(UserDataKeys.POINTS, (Integer) (player.getUserData(UserDataKeys.POINTS))
|
||||
+ (int) Math.round(points));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user