Fixed crash

This commit is contained in:
Anuken
2018-10-23 08:41:52 -04:00
parent b4b589bfc2
commit 8cd0618e85
2 changed files with 3 additions and 2 deletions

View File

@ -58,7 +58,7 @@ public class NetServer extends Module{
private final static Vector2 vector = new Vector2();
private final static Rectangle viewport = new Rectangle();
private final static Array<Entity> returnArray = new Array<>();
/**If a play goes away of their server-side coordinates by this distance, they get teleported back.*/
/**If a player goes away of their server-side coordinates by this distance, they get teleported back.*/
private final static float correctDist = 16f;
public final Administration admins = new Administration();

View File

@ -22,6 +22,7 @@ import io.anuke.ucore.core.Graphics;
import io.anuke.ucore.core.Timers;
import io.anuke.ucore.graphics.Draw;
import io.anuke.ucore.util.Mathf;
import io.anuke.ucore.util.Threads;
import static io.anuke.mindustry.Vars.content;
public class Drill extends Block{
@ -216,7 +217,7 @@ public class Drill extends Block{
@Override
public boolean canPlaceOn(Tile tile){
if(isMultiblock()){
for(Tile other : tile.getLinkedTilesAs(this, drawTiles)){
for(Tile other : tile.getLinkedTilesAs(this, Threads.isLogic() ? tempTiles : drawTiles)){
if(isValid(other)){
return true;
}