mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
some small fixes
This commit is contained in:
parent
7944494d74
commit
768c5a4fde
@ -125,7 +125,7 @@ public class ToolRecipes {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.defuser, 1), new Object[] { " PS", "P P", " P ", 'P', "ingotPolymer", 'S', "plateSteel" }));
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.coltan_tool, 1), new Object[] { "ACA", "CXC", "ACA", 'A', ModItems.ingot_advanced_alloy, 'C', ModItems.cinnebar, 'X', Items.compass });
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.reacher, 1), new Object[] { "BIB", "P P", "B B", 'B', ModItems.bolt_tungsten, 'I', "ingotTungsten", 'P', ModItems.plate_polymer }));
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.bismuth_tool, 1), new Object[] { "CTC", "BRB", "BTB", 'C', ModItems.coil_advanced_alloy, 'T', ModItems.gem_tantalium, 'B', ModItems.ingot_bismuth, 'R', ModItems.reacher });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.bismuth_tool, 1), new Object[] { "TBT", "SRS", "SCS", 'T', ModItems.nugget_tantalium, 'B', ModItems.nugget_bismuth, 'S', ModItems.ingot_tcalloy, 'R', ModItems.reacher, 'C', ModItems.circuit_aluminium });
|
||||
|
||||
//Bobmazon
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.bobmazon_materials), new Object[] { Items.book, Items.gold_nugget, Items.string });
|
||||
|
||||
@ -122,7 +122,9 @@ public class FluidTank {
|
||||
slots[in].stackSize--;
|
||||
if(slots[in].stackSize <= 0)
|
||||
slots[in] = null;
|
||||
slots[out].stackSize++;
|
||||
|
||||
if(FluidContainerRegistry.getEmptyContainer(slots[in]) != null)
|
||||
slots[out].stackSize++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -180,9 +180,9 @@ public class MachineRecipes {
|
||||
return list;
|
||||
case WATZ:
|
||||
list.add(new GasCentOutput(1, new ItemStack(ModItems.nugget_solinium), 1));
|
||||
list.add(new GasCentOutput(1, new ItemStack(ModItems.nugget_uranium), 1));
|
||||
list.add(new GasCentOutput(5, new ItemStack(ModItems.powder_lead), 1));
|
||||
list.add(new GasCentOutput(10, new ItemStack(ModItems.dust), 1));
|
||||
list.add(new GasCentOutput(1, new ItemStack(ModItems.nugget_uranium), 2));
|
||||
list.add(new GasCentOutput(5, new ItemStack(ModItems.powder_lead), 3));
|
||||
list.add(new GasCentOutput(10, new ItemStack(ModItems.dust), 4));
|
||||
return list;
|
||||
case SAS3:
|
||||
list.add(new GasCentOutput(4, new ItemStack(ModItems.nugget_schrabidium), 1));
|
||||
|
||||
@ -371,12 +371,13 @@ public class ModEventHandler {
|
||||
ItemStack cladding = mods[ArmorModHandler.cladding];
|
||||
|
||||
if(cladding != null && cladding.getItem() == ModItems.cladding_obsidian) {
|
||||
|
||||
try {
|
||||
ReflectionHelper.findField(Entity.class, "field_149500_a", "invulnerable").setBoolean(event.entityItem, true);
|
||||
} catch(Exception e) { }
|
||||
ReflectionHelper.setPrivateValue(Entity.class, event.entityItem, true, "field_149500_a", "invulnerable");
|
||||
}
|
||||
}
|
||||
|
||||
if(yeet.getItem() == ModItems.bismuth_tool) {
|
||||
ReflectionHelper.setPrivateValue(Entity.class, event.entityItem, true, "field_149500_a", "invulnerable");
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
@ -920,26 +921,24 @@ public class ModEventHandler {
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void enteringChunk(EnteringChunk evt)
|
||||
{
|
||||
if(evt.entity instanceof EntityMissileBaseAdvanced)
|
||||
{
|
||||
((EntityMissileBaseAdvanced)evt.entity).loadNeighboringChunks(evt.newChunkX, evt.newChunkZ);
|
||||
}
|
||||
|
||||
if(evt.entity instanceof EntityMissileCustom)
|
||||
{
|
||||
((EntityMissileCustom)evt.entity).loadNeighboringChunks(evt.newChunkX, evt.newChunkZ);
|
||||
}
|
||||
}
|
||||
public void enteringChunk(EnteringChunk evt) {
|
||||
|
||||
if(evt.entity instanceof EntityMissileBaseAdvanced) {
|
||||
((EntityMissileBaseAdvanced) evt.entity).loadNeighboringChunks(evt.newChunkX, evt.newChunkZ);
|
||||
}
|
||||
|
||||
if(evt.entity instanceof EntityMissileCustom) {
|
||||
((EntityMissileCustom) evt.entity).loadNeighboringChunks(evt.newChunkX, evt.newChunkZ);
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onPlayerClone(net.minecraftforge.event.entity.player.PlayerEvent.Clone event) {
|
||||
public void onPlayerClone(net.minecraftforge.event.entity.player.PlayerEvent.Clone event) {
|
||||
|
||||
NBTTagCompound data = new NBTTagCompound();
|
||||
HbmPlayerProps.getData(event.original).saveNBTData(data);
|
||||
HbmPlayerProps.getData(event.entityPlayer).loadNBTData(data);
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void itemCrafted(PlayerEvent.ItemCraftedEvent e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user