mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-22 12:38:05 +07:00
Partial teleporter item stacking fix.
This commit is contained in:
parent
b70f5b82ee
commit
fe3eb356fa
@ -1,7 +1,7 @@
|
||||
#Autogenerated file. Do not modify.
|
||||
#Thu Feb 15 19:14:34 EST 2018
|
||||
#Fri Feb 16 11:30:06 EST 2018
|
||||
version=beta
|
||||
androidBuildCode=230
|
||||
androidBuildCode=234
|
||||
name=Mindustry
|
||||
code=3.3
|
||||
build=22
|
||||
build=custom build
|
||||
|
@ -163,6 +163,10 @@ public class Conveyor extends Block{
|
||||
long result = ItemPos.packItem(item, y*0.9f, pos, (byte)Mathf.random(255));
|
||||
boolean inserted = false;
|
||||
|
||||
if(pos <= 0.00001f && entity.minitem <= 0.001f){
|
||||
return; //TODO low fps stacked items: what now?
|
||||
}
|
||||
|
||||
for(int i = 0; i < entity.convey.size; i ++){
|
||||
if(compareItems(result, entity.convey.get(i)) < 0){
|
||||
entity.convey.insert(i, result);
|
||||
|
Loading…
Reference in New Issue
Block a user