This commit is contained in:
Bob 2025-05-19 21:30:25 +02:00
parent c49bbab8c9
commit 5cf209e2c1
9 changed files with 17 additions and 8 deletions

View File

@ -1,7 +1,10 @@
## Changed ## Changed
* All compound plates can now also be made in the assembler * All compound plates can now also be made in the assembler
* Opening crates when held is now disabled by default
## Fixed ## Fixed
* Fixed all dud variants having the balefire explosion effect * Fixed all dud variants having the balefire explosion effect
* Fixed demolition charges being able to explode multiple times when hitting entities * Fixed demolition charges being able to explode multiple times when hitting entities
* Condensers are no longer affected by post-impact effects, fixing an issue where HP condenser tanks would go into the negatives * Condensers are no longer affected by post-impact effects, fixing an issue where HP condenser tanks would go into the negatives
* Probably fixed particle accelerator recipe config not working
* Fixed potential dupe bug involving many held inventories

View File

@ -1,6 +1,6 @@
mod_version=1.0.27 mod_version=1.0.27
# Empty build number makes a release type # Empty build number makes a release type
mod_build_number=5334 mod_build_number=5335
credits=HbMinecraft,\ credits=HbMinecraft,\
\ rodolphito (explosion algorithms),\ \ rodolphito (explosion algorithms),\

View File

@ -17,7 +17,7 @@ public class ServerConfig extends RunningConfig {
public static ConfigWrapper<Float> MINE_NUKE_DAMAGE = new ConfigWrapper(100F); public static ConfigWrapper<Float> MINE_NUKE_DAMAGE = new ConfigWrapper(100F);
public static ConfigWrapper<Float> MINE_NAVAL_DAMAGE = new ConfigWrapper(60F); public static ConfigWrapper<Float> MINE_NAVAL_DAMAGE = new ConfigWrapper(60F);
public static ConfigWrapper<Boolean> TAINT_TRAILS = new ConfigWrapper(false); public static ConfigWrapper<Boolean> TAINT_TRAILS = new ConfigWrapper(false);
public static ConfigWrapper<Boolean> CRATE_OPEN_HELD = new ConfigWrapper(true); public static ConfigWrapper<Boolean> CRATE_ALLOW_OPEN_HELD = new ConfigWrapper(false);
public static ConfigWrapper<Boolean> CRATE_KEEP_CONTENTS = new ConfigWrapper(true); public static ConfigWrapper<Boolean> CRATE_KEEP_CONTENTS = new ConfigWrapper(true);
public static ConfigWrapper<Integer> ITEM_HAZARD_DROP_TICKRATE = new ConfigWrapper(2); public static ConfigWrapper<Integer> ITEM_HAZARD_DROP_TICKRATE = new ConfigWrapper(2);
@ -29,7 +29,7 @@ public class ServerConfig extends RunningConfig {
configMap.put("MINE_NUKE_DAMAGE", MINE_NUKE_DAMAGE); configMap.put("MINE_NUKE_DAMAGE", MINE_NUKE_DAMAGE);
configMap.put("MINE_NAVAL_DAMAGE", MINE_NAVAL_DAMAGE); configMap.put("MINE_NAVAL_DAMAGE", MINE_NAVAL_DAMAGE);
configMap.put("TAINT_TRAILS", TAINT_TRAILS); configMap.put("TAINT_TRAILS", TAINT_TRAILS);
configMap.put("CRATE_OPEN_HELD", CRATE_OPEN_HELD); configMap.put("CRATE_ALLOW_OPEN_HELD", CRATE_ALLOW_OPEN_HELD);
configMap.put("CRATE_KEEP_CONTENTS", CRATE_KEEP_CONTENTS); configMap.put("CRATE_KEEP_CONTENTS", CRATE_KEEP_CONTENTS);
configMap.put("ITEM_HAZARD_DROP_TICKRATE", ITEM_HAZARD_DROP_TICKRATE); configMap.put("ITEM_HAZARD_DROP_TICKRATE", ITEM_HAZARD_DROP_TICKRATE);
} }

View File

@ -14,6 +14,7 @@ import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.InputEvent.KeyInputEvent; import cpw.mods.fml.common.gameevent.InputEvent.KeyInputEvent;
import cpw.mods.fml.common.gameevent.InputEvent.MouseInputEvent; import cpw.mods.fml.common.gameevent.InputEvent.MouseInputEvent;
import net.minecraft.client.Minecraft;
import net.minecraft.client.settings.KeyBinding; import net.minecraft.client.settings.KeyBinding;
public class HbmKeybinds { public class HbmKeybinds {
@ -81,6 +82,7 @@ public class HbmKeybinds {
@SubscribeEvent @SubscribeEvent
public void keyEvent(KeyInputEvent event) { public void keyEvent(KeyInputEvent event) {
if (calculatorKey.getIsKeyPressed()) { // handle the calculator client-side only if (calculatorKey.getIsKeyPressed()) { // handle the calculator client-side only
Minecraft.getMinecraft().thePlayer.closeScreen();
FMLCommonHandler.instance().showGuiScreen(new GUICalculator()); FMLCommonHandler.instance().showGuiScreen(new GUICalculator());
} }

View File

@ -168,10 +168,10 @@ public class ParticleAcceleratorRecipes extends SerializableRecipe {
this.recipes.add(new ParticleAcceleratorRecipe( this.recipes.add(new ParticleAcceleratorRecipe(
in[0], in[0],
in[1], in.length > 1 ? in[1] : null,
momentum, momentum,
out[0], out[0],
out[1] out.length > 1 ? out[1] : null
)); ));
} }

View File

@ -30,7 +30,7 @@ public class ItemBlockStorageCrate extends ItemBlockBase implements IGUIProvider
@Override @Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) { public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
if(!ServerConfig.CRATE_OPEN_HELD.get()) return stack; if(!ServerConfig.CRATE_ALLOW_OPEN_HELD.get()) return stack;
Block block = Block.getBlockFromItem(player.getHeldItem().getItem()); Block block = Block.getBlockFromItem(player.getHeldItem().getItem());
if(block == ModBlocks.mass_storage) return stack; // Genuinely can't figure out how to make this part work, so I'm just not gonna mess with it. if(block == ModBlocks.mass_storage) return stack; // Genuinely can't figure out how to make this part work, so I'm just not gonna mess with it.

View File

@ -3,7 +3,7 @@ package com.hbm.lib;
public class RefStrings { public class RefStrings {
public static final String MODID = "hbm"; public static final String MODID = "hbm";
public static final String NAME = "Hbm's Nuclear Tech Mod"; public static final String NAME = "Hbm's Nuclear Tech Mod";
public static final String VERSION = "1.0.27 BETA (5334)"; public static final String VERSION = "1.0.27 BETA (5335)";
//HBM's Beta Naming Convention: //HBM's Beta Naming Convention:
//V T (X) //V T (X)
//V -> next release version //V -> next release version

View File

@ -948,6 +948,7 @@ public class ModEventHandlerClient {
if(comp != null) { if(comp != null) {
CanneryBase cannery = Jars.canneries.get(comp); CanneryBase cannery = Jars.canneries.get(comp);
if(cannery != null) { if(cannery != null) {
Minecraft.getMinecraft().thePlayer.closeScreen();
FMLCommonHandler.instance().showGuiScreen(new GuiWorldInAJar(cannery.createScript(), cannery.getName(), cannery.getIcon(), cannery.seeAlso())); FMLCommonHandler.instance().showGuiScreen(new GuiWorldInAJar(cannery.createScript(), cannery.getName(), cannery.getIcon(), cannery.seeAlso()));
} }
} }
@ -959,6 +960,7 @@ public class ModEventHandlerClient {
if(stack != null) { if(stack != null) {
stack = stack.copy(); stack = stack.copy();
stack.stackSize = 1; stack.stackSize = 1;
Minecraft.getMinecraft().thePlayer.closeScreen();
FMLCommonHandler.instance().showGuiScreen(new GUIScreenPreview(stack)); FMLCommonHandler.instance().showGuiScreen(new GUIScreenPreview(stack));
} }
} }
@ -1002,6 +1004,7 @@ public class ModEventHandlerClient {
} }
} }
Minecraft.getMinecraft().thePlayer.closeScreen();
FMLCommonHandler.instance().showGuiScreen(new GUIScreenWikiRender(stacks.toArray(new ItemStack[0]), prefix, "wiki-block-renders-256", scale)); FMLCommonHandler.instance().showGuiScreen(new GUIScreenWikiRender(stacks.toArray(new ItemStack[0]), prefix, "wiki-block-renders-256", scale));
} }
} else { } else {

View File

@ -216,6 +216,7 @@ public class GuiWorldInAJar extends GuiScreen {
if(15 <= mouseX && 39 > mouseX && 15 + 36 * (i + 1) < mouseY && 39 + 36 * (i + 1) >= mouseY) { if(15 <= mouseX && 39 > mouseX && 15 + 36 * (i + 1) < mouseY && 39 + 36 * (i + 1) >= mouseY) {
CanneryBase cannery = seeAlso[i]; CanneryBase cannery = seeAlso[i];
mc.getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F)); mc.getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F));
Minecraft.getMinecraft().thePlayer.closeScreen();
FMLCommonHandler.instance().showGuiScreen(new GuiWorldInAJar(cannery.createScript(), cannery.getName(), cannery.getIcon(), cannery.seeAlso())); FMLCommonHandler.instance().showGuiScreen(new GuiWorldInAJar(cannery.createScript(), cannery.getName(), cannery.getIcon(), cannery.seeAlso()));
return; return;
} }