A few minor bugfixes, updated version to 3.3 release
This commit is contained in:
+2
-1
@@ -18,9 +18,10 @@ allprojects {
|
||||
apply plugin: "idea"
|
||||
|
||||
version = 'release'
|
||||
|
||||
ext {
|
||||
versionNumber = '3.3'
|
||||
versionType = 'beta'
|
||||
versionType = 'release'
|
||||
appName = 'Mindustry'
|
||||
gdxVersion = '1.9.8'
|
||||
aiVersion = '1.8.1'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#Autogenerated file. Do not modify.
|
||||
#Tue Feb 20 23:46:44 EST 2018
|
||||
version=beta
|
||||
androidBuildCode=250
|
||||
#Wed Feb 21 15:00:37 EST 2018
|
||||
version=release
|
||||
androidBuildCode=257
|
||||
name=Mindustry
|
||||
code=3.3
|
||||
build=26
|
||||
build=custom build
|
||||
|
||||
@@ -167,6 +167,7 @@ public class Control extends Module{
|
||||
|
||||
ui.hudfrag.updateItems();
|
||||
ui.hudfrag.updateWeapons();
|
||||
ui.hudfrag.fadeRespawn(false);
|
||||
});
|
||||
|
||||
Events.on(WaveEvent.class, () -> {
|
||||
|
||||
@@ -6,6 +6,7 @@ import io.anuke.mindustry.resource.Item;
|
||||
import io.anuke.mindustry.world.Block;
|
||||
import io.anuke.mindustry.world.BlockBar;
|
||||
import io.anuke.mindustry.world.Tile;
|
||||
import io.anuke.ucore.core.Timers;
|
||||
import io.anuke.ucore.util.Mathf;
|
||||
|
||||
public class Router extends Block{
|
||||
@@ -35,13 +36,18 @@ public class Router extends Block{
|
||||
public void update(Tile tile){
|
||||
tile.setRotation((byte)Mathf.mod(tile.getRotation(), 4));
|
||||
|
||||
if(tile.entity.totalItems() > 0){
|
||||
if(tile.getExtra() != tile.getRotation()
|
||||
|| Mathf.chance(0.35)){ //sometimes dump backwards at a 1/4 chance... this somehow works?
|
||||
tryDump(tile, tile.getRotation(), null);
|
||||
}
|
||||
int iterations = Math.max(1, (int) (Timers.delta() + 0.4f));
|
||||
|
||||
tile.setRotation((byte)((tile.getRotation() + 1) % 4));
|
||||
for(int i = 0; i < iterations; i ++) {
|
||||
|
||||
if (tile.entity.totalItems() > 0) {
|
||||
if (tile.getExtra() != tile.getRotation()
|
||||
|| Mathf.chance(0.35)) { //sometimes dump backwards at a 1/4 chance... this somehow works?
|
||||
tryDump(tile, tile.getRotation(), null);
|
||||
}
|
||||
|
||||
tile.setRotation((byte) ((tile.getRotation() + 1) % 4));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user