mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 21:20:06 +00:00
some fixes
This commit is contained in:
1 parent
dc968ae355
commit
dfcc6e9d89
17 files changed
+32
-26
No files matched your search
@@ -43,7 +43,7 @@ public class EnvironmentGui extends GuiScreen
|
||||
/**
|
||||
* Called when the screen is unloaded. Used to disable keyboard repeat events
|
||||
*/
|
||||
public void onGuiClosed ()
|
||||
public void func_146281_b ()
|
||||
{
|
||||
Keyboard.enableRepeatEvents(false);
|
||||
}
|
||||
@@ -51,7 +51,7 @@ public class EnvironmentGui extends GuiScreen
|
||||
/**
|
||||
* Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
|
||||
*/
|
||||
protected void actionPerformed (GuiButton button)
|
||||
protected void func_146284_a (GuiButton button)
|
||||
{
|
||||
if (button.field_146124_l)
|
||||
{
|
||||
|
||||
@@ -283,7 +283,7 @@ public class TEventHandler
|
||||
{
|
||||
ItemStack dropStack = new ItemStack(TRepo.heartCanister, 1, 1);
|
||||
EntityItem entityitem = new EntityItem(event.entityLiving.worldObj, event.entityLiving.posX, event.entityLiving.posY, event.entityLiving.posZ, dropStack);
|
||||
entityitem.delayBeforeCanPickup = 10;
|
||||
entityitem.field_145804_b = 10;
|
||||
event.drops.add(entityitem);
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ public class TEventHandler
|
||||
{
|
||||
ItemStack dropStack = new ItemStack(TRepo.heartCanister, 1, 1);
|
||||
EntityItem entityitem = new EntityItem(event.entityLiving.worldObj, event.entityLiving.posX, event.entityLiving.posY, event.entityLiving.posZ, dropStack);
|
||||
entityitem.delayBeforeCanPickup = 10;
|
||||
entityitem.field_145804_b = 10;
|
||||
event.drops.add(entityitem);
|
||||
}
|
||||
|
||||
@@ -476,7 +476,7 @@ public class TEventHandler
|
||||
void addDrops (LivingDropsEvent event, ItemStack dropStack)
|
||||
{
|
||||
EntityItem entityitem = new EntityItem(event.entityLiving.worldObj, event.entityLiving.posX, event.entityLiving.posY, event.entityLiving.posZ, dropStack);
|
||||
entityitem.delayBeforeCanPickup = 10;
|
||||
entityitem.field_145804_b = 10;
|
||||
event.drops.add(entityitem);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@ package tconstruct.util.landmine.behavior;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import mantle.blocks.BlockUtils;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.item.EntityFallingSand;
|
||||
import net.minecraft.entity.item.EntityFallingBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -64,7 +65,7 @@ public class BehaviorBlockThrow extends Behavior
|
||||
break;
|
||||
}
|
||||
|
||||
EntityFallingSand entityfallingsand = new EntityFallingSand(par1World, (double) ((float) par2 + 0.5F), (double) ((float) par3 + 2F), (double) ((float) par4 + 0.5F), par5ItemStack.getItem(),
|
||||
EntityFallingBlock entityfallingsand = new EntityFallingBlock(par1World, (double) ((float) par2 + 0.5F), (double) ((float) par3 + 2F), (double) ((float) par4 + 0.5F), BlockUtils.getBlockFromItemStack(par5ItemStack),
|
||||
par5ItemStack.getItemDamage());
|
||||
entityfallingsand.preventEntitySpawning = false;
|
||||
entityfallingsand.fallTime = 2;
|
||||
|
||||
@@ -83,7 +83,7 @@ public class BehaviorShears extends Behavior
|
||||
double d1 = (double) (par1World.rand.nextFloat() * f) + (double) (1.0F - f) * 0.5D;
|
||||
double d2 = (double) (par1World.rand.nextFloat() * f) + (double) (1.0F - f) * 0.5D;
|
||||
EntityItem entityitem = new EntityItem(par1World, (double) par2 + d0, (double) par3 + d1, (double) par4 + d2, par5ItemStack);
|
||||
entityitem.delayBeforeCanPickup = 10;
|
||||
entityitem.field_145804_b = 10;
|
||||
par1World.spawnEntityInWorld(entityitem);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user