Bugfixes / Built-in rate limits
This commit is contained in:
@@ -144,6 +144,10 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra
|
||||
con.kick(reason);
|
||||
}
|
||||
|
||||
void kick(String reason, int duration){
|
||||
con.kick(reason, duration);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void draw(){
|
||||
Draw.z(Layer.playerName);
|
||||
|
||||
@@ -177,6 +177,10 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
return controller instanceof Playerc;
|
||||
}
|
||||
|
||||
public Playerc getPlayer(){
|
||||
return isPlayer() ? (Playerc)controller : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void killed(){
|
||||
float explosiveness = 2f + item().explosiveness * stack().amount;
|
||||
|
||||
Reference in New Issue
Block a user