Skip to content

Commit

Permalink
baa
Browse files Browse the repository at this point in the history
  • Loading branch information
HbmMods committed Jul 24, 2024
1 parent 8e767e5 commit 44585d3
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 15 deletions.
4 changes: 3 additions & 1 deletion changelog
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
* Fixed automatic crafting table filters being broken
* Fixed missing localization for black lung death messages
* Fixed disconnect caused by using a filter on the autocrafter's template output slot
* Fixed sentry turret "Brown" being uncraftable
* Fixed sentry turret "Brown" being uncraftable
* Fixed instant crash caused by processing some bedrock ores in an electrolyzer
* Disabled unused debug code for reflection testing
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod_version=1.0.27
# Empty build number makes a release type
mod_build_number=5027
mod_build_number=5036

credits=HbMinecraft,\
\ rodolphito (explosion algorithms),\
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/hbm/config/GeneralConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public static void loadFromConfig(Configuration config) {
enableLBSMSimpleCentrifuge = CommonConfig.createConfigBool(config, CATEGORY_LBSM, "LBSM_recipeSimpleCentrifuge", "When enabled, enhances centrifuge outputs to make rare materials more common", true);
enableLBSMUnlockAnvil = CommonConfig.createConfigBool(config, CATEGORY_LBSM, "LBSM_recipeUnlockAnvil", "When enabled, all anvil recipes are available at tier 1", true);
enableLBSMSimpleCrafting = CommonConfig.createConfigBool(config, CATEGORY_LBSM, "LBSM_recipeSimpleCrafting", "When enabled, some uncraftable or more expansive items get simple crafting recipes. Scorched uranium also becomes washable", true);
enableLBSMSimpleMedicineRecipes = CommonConfig.createConfigBool(config, CATEGORY_LBSM, "LBSM_recipeSimpleMedicine", "When enabled, makes some medicine recipes (line ones that require bismuth) much more affordable", true);
enableLBSMSimpleMedicineRecipes = CommonConfig.createConfigBool(config, CATEGORY_LBSM, "LBSM_recipeSimpleMedicine", "When enabled, makes some medicine recipes (like ones that require bismuth) much more affordable", true);
enableLBSMSafeCrates = CommonConfig.createConfigBool(config, CATEGORY_LBSM, "LBSM_safeCrates", "When enabled, prevents crates from becoming radioactive", true);
enableLBSMSafeMEDrives = CommonConfig.createConfigBool(config, CATEGORY_LBSM, "LBSM_safeMEDrives", "When enabled, prevents ME Drives and Portable Cells from becoming radioactive", true);
enableLBSMIGen = CommonConfig.createConfigBool(config, CATEGORY_LBSM, "LBSM_iGen", "When enabled, restores the industrial generator to pre-nerf power", true);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/hbm/items/tool/ItemWandD.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer pla
Component comp = new RuralHouse1(world.rand, i, j);
comp.addComponentParts(world, world.rand, new StructureBoundingBox(i, j, i + 32, j + 32));*/

ExplosionVNT vnt = new ExplosionVNT(world, pos.blockX + 0.5, pos.blockY + 1, pos.blockZ + 0.5, 40F);
ExplosionVNT vnt = new ExplosionVNT(world, pos.blockX + 0.5, pos.blockY + 1, pos.blockZ + 0.5, 15F);
vnt.makeStandard();
vnt.setSFX();
vnt.setBlockAllocator(new BlockAllocatorStandard(32));
vnt.explode();

ExplosionCreator.composeEffectLarge(world, pos.blockX + 0.5, pos.blockY + 0.5, pos.blockZ + 0.5);
ExplosionCreator.composeEffectStandard(world, pos.blockX + 0.5, pos.blockY + 0.5, pos.blockZ + 0.5);

/*for(int i = 0; i < 10; i++) {
NBTTagCompound data = new NBTTagCompound();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/hbm/lib/RefStrings.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class RefStrings {
public static final String MODID = "hbm";
public static final String NAME = "Hbm's Nuclear Tech Mod";
public static final String VERSION = "1.0.27 BETA (5027)";
public static final String VERSION = "1.0.27 BETA (5036)";
//HBM's Beta Naming Convention:
//V T (X)
//V -> next release version
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/hbm/main/MainRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public void PreLoad(FMLPreInitializationEvent PreEvent) {
polaroidID = rand.nextInt(18) + 1;
}

ShadyUtil.test();
//ShadyUtil.test();
loadConfig(PreEvent);
HbmPotion.init();

Expand Down
9 changes: 3 additions & 6 deletions src/main/java/com/hbm/particle/helper/ExplosionCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void composeEffect(World world, double x, double y, double z, int
data.setFloat("debrisHorizontalDeviation", debrisHorizontalDeviation);
data.setFloat("debrisVerticalOffset", debrisVerticalOffset);
data.setFloat("soundRange", soundRange);
IParticleCreator.sendPacket(world, x, y, z, Math.max(200, (int) soundRange), data);
IParticleCreator.sendPacket(world, x, y, z, Math.max(300, (int) soundRange), data);
}

/** Downscaled for small bombs */
Expand Down Expand Up @@ -73,8 +73,8 @@ public void makeParticle(World world, EntityPlayer player, TextureManager man, R
if(dist <= soundRange) {
while(ModEventHandlerClient.soundLock);
ModEventHandlerClient.soundLock = true;
String sound = dist <= soundRange * 0.33 ? "hbm:weapon.explosionLargeNear" : "hbm:weapon.explosionLargeFar";
ModEventHandlerClient.delayedSounds.add(new DelayedSound(sound, (int) (dist / speedOfSound), x, y, z, 1000F, 1F));
String sound = dist <= soundRange * 0.4 ? "hbm:weapon.explosionLargeNear" : "hbm:weapon.explosionLargeFar";
ModEventHandlerClient.delayedSounds.add(new DelayedSound(sound, (int) (dist / speedOfSound), x, y, z, 1000F, 0.9F + rand.nextFloat() * 0.2F));
ModEventHandlerClient.soundLock = false;
}

Expand Down Expand Up @@ -104,9 +104,6 @@ public void makeParticle(World world, EntityPlayer player, TextureManager man, R
double oX = rand.nextGaussian() * debrisHorizontalDeviation;
double oY = debrisVerticalOffset;
double oZ = rand.nextGaussian() * debrisHorizontalDeviation;
int ix = (int) Math.floor(x + oX);
int iy = (int) Math.floor(y + oY);
int iz = (int) Math.floor(z + oZ);
int cX = (int) Math.floor(x + oX + 0.5);
int cY = (int) Math.floor(y + oY + 0.5);
int cZ = (int) Math.floor(z + oZ + 0.5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,12 @@ public boolean canProcessMetal() {
ElectrolysisMetalRecipe recipe = ElectrolyserMetalRecipes.getRecipe(slots[14]);
if(recipe == null) return false;

if(leftStack != null) {
if(leftStack != null && recipe.output1 != null) {
if(recipe.output1.material != leftStack.material) return false;
if(recipe.output1.amount + leftStack.amount > this.maxMaterial) return false;
}

if(rightStack != null) {
if(rightStack != null && recipe.output2 != null) {
if(recipe.output2.material != rightStack.material) return false;
if(recipe.output2.amount + rightStack.amount > this.maxMaterial) return false;
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 44585d3

Please sign in to comment.