Compare commits

..
5 Commits
Author SHA1 Message Date
Martin Robertz 3bb2edda24 Merge pull request #30 from bearsdotzone/master
Bug: Aspect Crops will never yield a certain valid drop
2023-04-25 19:49:01 +02:00
abneyonline 587027c24e updated dependencies 2023-04-25 11:18:04 -05:00
Bears Dot Zone a8259fe5cc Fix off by one when generating aspect crop loot. 2023-04-25 04:22:49 +00:00
Connor-Colenso 2e906240da Merge pull request #29 from GTNewHorizons/fixarrowexploit
should fix arrow exploits for gt materials
2023-03-26 19:18:28 +01:00
chochem d79f97397a should fix arrow exploits 2023-03-26 17:57:11 +01:00
2 changed files with 4 additions and 4 deletions

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@
dependencies {
compile('com.github.GTNewHorizons:Baubles:1.0.1.14:dev')
compile('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-147-GTNH:api')
compile('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-195-GTNH:api')
compile('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
@@ -14,7 +14,7 @@ dependencies {
compileOnly('com.github.GTNewHorizons:TinkersConstruct:1.9.0.13-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.2.7:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:CodeChickenLib:1.1.5.3:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:OpenComputers:1.7.5.23-GTNH:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:OpenComputers:1.9.1-GTNH:api') {transitive=false}
compileOnly('curse.maven:computercraft-67504:2269339')
compileOnly('curse.maven:cofh-lib-220333:2388748')
@@ -41,10 +41,10 @@ public class AspectCropLootManager {
Random rand = new Random();
int randInt = rand.nextInt(sum);
for (Map.Entry<ItemStack, Integer> pair : aspectHashmap.entrySet()) {
randInt -= pair.getValue();
if (randInt <= 0) {
return pair.getKey().copy();
}
randInt -= pair.getValue();
}
}
return null;
@@ -118,7 +118,7 @@ public class AspectCropLootManager {
addAspectLoot(Aspect.ELDRITCH, new ItemStack(Items.ender_eye, 4), 5);
addAspectLoot(Aspect.ELDRITCH, "bucketEnder");
addAspectLoot(Aspect.TREE, "wood");
// addAspectLoot(Aspect.TREE, "wood");
addAspectLoot(Aspect.TREE, new ItemStack(Blocks.log));