This commit is contained in:
Anuken
2020-08-18 16:56:30 -04:00
parent e96fcb3cb7
commit 26acf7cbbc
8 changed files with 27 additions and 29 deletions

View File

@@ -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;
}

View File

@@ -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;
}