Fixed derelict repair not working on servers
This commit is contained in:
@@ -674,7 +674,7 @@ public class NetServer implements ApplicationListener{
|
|||||||
//auto-skip done requests
|
//auto-skip done requests
|
||||||
if(req.breaking && tile.block() == Blocks.air){
|
if(req.breaking && tile.block() == Blocks.air){
|
||||||
continue;
|
continue;
|
||||||
}else if(!req.breaking && tile.block() == req.block && (!req.block.rotate || (tile.build != null && tile.build.rotation == req.rotation))){
|
}else if(!req.breaking && tile.block() == req.block && tile.team() != Team.derelict && (!req.block.rotate || (tile.build != null && tile.build.rotation == req.rotation))){
|
||||||
continue;
|
continue;
|
||||||
}else if(con.rejectedRequests.contains(r -> r.breaking == req.breaking && r.x == req.x && r.y == req.y)){ //check if request was recently rejected, and skip it if so
|
}else if(con.rejectedRequests.contains(r -> r.breaking == req.breaking && r.x == req.x && r.y == req.y)){ //check if request was recently rejected, and skip it if so
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user