mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 23:28:52 +07:00
Fixed multiblock exploit
This commit is contained in:
parent
45d157fe3f
commit
330820062f
@ -222,6 +222,8 @@ public class Damage{
|
|||||||
|
|
||||||
if(scaledDamage <= 0 || tile == null) continue;
|
if(scaledDamage <= 0 || tile == null) continue;
|
||||||
|
|
||||||
|
tile = tile.target();
|
||||||
|
|
||||||
//apply damage to entity if needed
|
//apply damage to entity if needed
|
||||||
if(tile.entity != null && tile.getTeam() != team){
|
if(tile.entity != null && tile.getTeam() != team){
|
||||||
int health = (int)tile.entity.health;
|
int health = (int)tile.entity.health;
|
||||||
|
@ -79,10 +79,10 @@ public class Minimap extends Container<Element>{
|
|||||||
}
|
}
|
||||||
super.touchDragged(event, x, y, pointer);
|
super.touchDragged(event, x, y, pointer);
|
||||||
|
|
||||||
//if(mobile){
|
if(mobile){
|
||||||
float max = Math.min(world.width(), world.height()) / 16f / 2f;
|
float max = Math.min(world.width(), world.height()) / 16f / 2f;
|
||||||
renderer.minimap.setZoom(1f + y / height * (max - 1f));
|
renderer.minimap.setZoom(1f + y / height * (max - 1f));
|
||||||
//}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user