Skip to content

Commit

Permalink
1.3.8 Update
Browse files Browse the repository at this point in the history
Fixed Crafting Buffer Upgrade not sending items correctly
Fixes #29
  • Loading branch information
tom5454 committed Jul 30, 2020
1 parent 6211cdf commit 8d2c34f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dependencies {
compileOnly group: 'cofh', name: 'ThermalDynamics', version: '1.12.2-2.5.5.21', classifier: 'deobf', transitive: false
compileOnly group: 'refinedstorage', name: 'refinedstorage', version: '1.6.16-386', transitive: false
compileOnly group: 'codechicken', name: 'NotEnoughItems', version: '1.12.2-2.4.3.245', classifier: 'deobf', transitive: false
compileOnly group: 'appeng', name: 'appliedenergistics2', version: 'rv6-stable-7', transitive: false
compileOnly group: 'appeng', name: 'appliedenergistics2', version: 'rv6-stable-7', classifier: 'deobf', transitive: false
}

tasks.withType(Wrapper) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/tom/logisticsbridge/LogisticsBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
public class LogisticsBridge {
public static final String ID = "logisticsbridge";
public static final String NAME = "Logistics Bridge";
public static final String VERSION = "1.3.7";
public static final String VERSION = "1.3.8";
public static final String DEPS = "after:appliedenergistics2;after:refinedstorage@[1.6.15,);required-after:logisticspipes@[0.10.3.39,)";
public static final String UPDATE = "https://github.com/tom5454/LogisticsBridge/blob/master/version-check.json";
public static final Logger log = LogManager.getLogger(NAME);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ public void canProvide(RequestTreeNode tree, RequestTree root, List<IFilter> fil
public LogisticsItemOrder fullFill(LogisticsPromise promise, IRequestItems destination, IAdditionalTargetInformation info) {
if(!(_service instanceof CraftingManager))return null;
CraftingManager mngr = (CraftingManager) _service;
ItemIdentifierStack result = getCraftedItem();
if(result == null)return null;
int multiply = (int) Math.ceil(promise.numberOfItems / (float) result.getStackSize());
if(mngr.isBuffered()){
List<Pair<IRequestItems, ItemIdentifierStack>> rec = new ArrayList<>();
IRouter defSat = getSatelliteRouterByID(mngr.getSatelliteUUID());
Expand Down Expand Up @@ -277,7 +280,8 @@ public LogisticsItemOrder fullFill(LogisticsPromise promise, IRequestItems desti
if(mat != null)rec.add(Pair.of(target[i], mat));
}

mngr.addBuffered(rec);
for(int i = 0;i<multiply;i++)
mngr.addBuffered(rec);
}
IRouter resultR = getResultRouterByID(mngr.getResultUUID());
if(resultR == null)return null;
Expand Down
5 changes: 3 additions & 2 deletions version-check.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"homepage": "https://www.curseforge.com/minecraft/mc-mods/logistics-bridge",
"promos": {
"1.12.2-latest": "1.3.7",
"1.12.2-recommended": "1.3.7"
"1.12.2-latest": "1.3.8",
"1.12.2-recommended": "1.3.8"
},
"1.12.2": {
"1.3.8": "Fixed Crafting Buffer Upgrade not sending items correctly",
"1.3.7": "Fixed crash",
"1.3.6": "Fixed crash with the newest LogisticsPipes version",
"1.3.5": "Fixed recipes couldn't be modified with CraftTweaker",
Expand Down

0 comments on commit 8d2c34f

Please sign in to comment.