mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
fixes
This commit is contained in:
parent
7f689bfc37
commit
81de047825
@ -102,13 +102,13 @@ public class GUIBookLore extends GuiScreen {
|
|||||||
|
|
||||||
if(argTag.hasNoTags())
|
if(argTag.hasNoTags())
|
||||||
text = I18nUtil.resolveKey(k + defacto);
|
text = I18nUtil.resolveKey(k + defacto);
|
||||||
else { //TODO consider caching the text per page
|
else {
|
||||||
List<String> args = new ArrayList();
|
List<String> args = new ArrayList();
|
||||||
int index = 1;
|
int index = 1;
|
||||||
String arg = argTag.getString("a1");
|
String arg = argTag.getString("a1");
|
||||||
|
|
||||||
while(!arg.isEmpty()) {
|
while(!arg.isEmpty()) {
|
||||||
args.add(I18nUtil.resolveKey(arg)); //TODO check if this works fine
|
args.add(arg);
|
||||||
index++;
|
index++;
|
||||||
arg = argTag.getString("a" + index);
|
arg = argTag.getString("a" + index);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,11 +2,13 @@ package com.hbm.items.tool;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.hbm.entity.effect.EntityNukeTorex;
|
||||||
import com.hbm.lib.Library;
|
import com.hbm.lib.Library;
|
||||||
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.AxisAlignedBB;
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
@ -68,7 +70,7 @@ public class ItemWandD extends Item {
|
|||||||
tom.destructionRange = 600;
|
tom.destructionRange = 600;
|
||||||
world.spawnEntityInWorld(tom);*/
|
world.spawnEntityInWorld(tom);*/
|
||||||
|
|
||||||
/*List<EntityNukeTorex> del = world.getEntitiesWithinAABB(EntityNukeTorex.class, AxisAlignedBB.getBoundingBox(pos.blockX, pos.blockY + 1, pos.blockZ, pos.blockX, pos.blockY + 1, pos.blockZ).expand(50, 50, 50));
|
List<EntityNukeTorex> del = world.getEntitiesWithinAABB(EntityNukeTorex.class, AxisAlignedBB.getBoundingBox(pos.blockX, pos.blockY + 1, pos.blockZ, pos.blockX, pos.blockY + 1, pos.blockZ).expand(50, 50, 50));
|
||||||
|
|
||||||
if(!del.isEmpty()) {
|
if(!del.isEmpty()) {
|
||||||
for(EntityNukeTorex torex : del) torex.setDead();
|
for(EntityNukeTorex torex : del) torex.setDead();
|
||||||
@ -80,7 +82,6 @@ public class ItemWandD extends Item {
|
|||||||
IntHashMap map = ReflectionHelper.getPrivateValue(EntityTracker.class, entitytracker, "trackedEntityIDs", "field_72794_c");
|
IntHashMap map = ReflectionHelper.getPrivateValue(EntityTracker.class, entitytracker, "trackedEntityIDs", "field_72794_c");
|
||||||
EntityTrackerEntry entry = (EntityTrackerEntry) map.lookup(torex.getEntityId());
|
EntityTrackerEntry entry = (EntityTrackerEntry) map.lookup(torex.getEntityId());
|
||||||
entry.blocksDistanceThreshold = 1000;*/
|
entry.blocksDistanceThreshold = 1000;*/
|
||||||
//TrackerUtil.setTrackingRange(world, torex, 1000);
|
|
||||||
//world.spawnEntityInWorld(EntityNukeExplosionMK5.statFacNoRad(world, 150, pos.blockX, pos.blockY + 1, pos.blockZ));
|
//world.spawnEntityInWorld(EntityNukeExplosionMK5.statFacNoRad(world, 150, pos.blockX, pos.blockY + 1, pos.blockZ));
|
||||||
|
|
||||||
//DungeonToolbox.generateBedrockOreWithChance(world, world.rand, pos.blockX, pos.blockZ, EnumBedrockOre.TITANIUM, new FluidStack(Fluids.SULFURIC_ACID, 500), 2, 1);
|
//DungeonToolbox.generateBedrockOreWithChance(world, world.rand, pos.blockX, pos.blockZ, EnumBedrockOre.TITANIUM, new FluidStack(Fluids.SULFURIC_ACID, 500), 2, 1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user