This commit is contained in:
Anuken
2020-02-29 19:37:14 -05:00
parent 26c328ae34
commit 4b36a6d5bd
7 changed files with 21 additions and 12 deletions

View File

@@ -82,15 +82,15 @@ public class Build{
return false;
}
Tile tile = world.tile(x, y);
if(tile == null) return false;
//ca check
if(world.getDarkness(x, y) >= 3){
return false;
}
Tile tile = world.tile(x, y);
if(tile == null) return false;
if(type.isMultiblock()){
if(type.canReplace(tile.block()) && tile.block().size == type.size && type.canPlaceOn(tile) && tile.interactable(team)){
return true;