Bugfixes
This commit is contained in:
@@ -148,9 +148,9 @@ public class BuildBlock extends Block{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tapped(Player player){
|
||||
public void tapped(){
|
||||
//if the target is constructible, begin constructing
|
||||
if(!headless && cblock != null){
|
||||
if(cblock != null){
|
||||
if(control.input.buildWasAutoPaused && !control.input.isBuilding && player.isBuilder()){
|
||||
control.input.isBuilding = true;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ public class Door extends Wall{
|
||||
if(type == LAccess.enabled){
|
||||
boolean shouldOpen = !Mathf.zero(p1);
|
||||
|
||||
if(open == shouldOpen || (Units.anyEntities(tile) && !shouldOpen) || !origin().timer(timerToggle, 60f)){
|
||||
if(net.client() || open == shouldOpen || (Units.anyEntities(tile) && !shouldOpen) || !origin().timer(timerToggle, 60f)){
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ public class Door extends Wall{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tapped(Player player){
|
||||
public void tapped(){
|
||||
if((Units.anyEntities(tile) && open) || !origin().timer(timerToggle, 50f)){
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user