Skip to content

Instantly share code, notes, and snippets.

[13:38:00] [Server thread/ERROR]: Exception caught during firing event: null
Index: 2
Listeners:
0: NORMAL
1: net.minecraftforge.eventbus.EventBus$$Lambda$2665/691637081@120282e7
2: ASM: wayoftime.bloodmagic.util.handler.event.GenericHandler@25172daa onEntityUseTick(Lnet/minecraftforge/event/entity/living/LivingEntityUseItemEvent$Tick;)V
3: ASM: class cofh.core.event.ArcheryEvents handleItemUseTickEvent(Lnet/minecraftforge/event/entity/living/LivingEntityUseItemEvent$Tick;)V
java.lang.NullPointerException
at wayoftime.bloodmagic.util.handler.event.GenericHandler.onEntityUseTick(GenericHandler.java:562)
at net.minecraftforge.eventbus.ASMEventHandler_502_GenericHandler_onEntityUseTick_Tick.invoke(.dynamic)
package cofh.api.energy;
import net.minecraftforge.common.ForgeDirection;
/**
* Implement this interface on TileEntities which should handle energy, generally storing it in one or more internal {@link IEnergyStorage} objects.
*
* A reference implementation is provided {@link TileEnergyHandler}.
*
* @author King Lemming
public static ItemStack addToRandomInventory(ItemStack stack, World world, int x, int y, int z, ForgeDirection exclude_from) {
LinkedList<Object[]> possibleInventories = new LinkedList<Object[]>();
// Determine inventories which can accept (at least part of) this stack.
for (ForgeDirection orientation : ForgeDirection.values()) {
if (exclude_from.getOpposite() == orientation) {
continue;
}
Position pos = new Position(x, y, z, orientation);
package buildcraft.transport;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.ForgeDirection;
public class PipeTransportStructure extends PipeTransport {
@Override
public boolean canPipeConnect(TileEntity tile, ForgeDirection side) {
if (tile instanceof TileGenericPipe) {
/**
* Initializes the texture constants to be used when rendering lightmap values
*/
public static void initializeTextures()
{
useMultitextureARB = GLContext.getCapabilities().GL_ARB_multitexture && !GLContext.getCapabilities().OpenGL13;
if (useMultitextureARB)
{
defaultTexUnit = 33984;
2013-03-25 14:42:08 [INFO] [STDOUT] Engine: 30948
2013-03-25 14:42:08 [INFO] [STDOUT] Engine: 30949
2013-03-25 14:42:08 [INFO] [STDOUT] Engine: 30950
2013-03-25 14:42:08 [INFO] [STDOUT] Engine: 30951
2013-03-25 14:42:08 [INFO] [STDOUT] Engine: 30952
2013-03-25 14:42:08 [INFO] [STDOUT] Engine: 30953
2013-03-25 14:42:08 [INFO] [STDOUT] Pump: 30954
2013-03-25 14:42:08 [INFO] [STDOUT] Engine: 30954
2013-03-25 14:42:08 [INFO] [STDOUT] Engine: 30955
2013-03-25 14:42:08 [INFO] [STDOUT] Engine: 30956
@Flow86
Flow86 / ant.patch
Created September 8, 2012 11:25
Fix problem with build
diff --git a/antlib.xml b/antlib.xml
new file mode 100644
index 0000000..72aacb8
--- /dev/null
+++ b/antlib.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0"?>
+<antlib>
+ <!-- typedef the tasks that work for ant less than 1.6 -->
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties">
<property name="download.dir" value="download"/>
<get src="http://mcp.ocean-labs.de/files/mcp${mcp.version}.zip" dest="${download.dir}" usetimestamp="True"/>
<get src="https://dl.dropbox.com/u/28221422/MinecraftForge/forge-${forge.version}/minecraftforge-src-${forge.version}.zip"
dest="${download.dir}" usetimestamp="True"/>
@Flow86
Flow86 / mcp.patch
Created July 1, 2012 15:24
fix exit code of mcp recompile
--- runtime/commands.py.bak 2012-04-03 17:04:50.927862565 +0200
+++ runtime/commands.py 2012-04-03 17:05:01.287741310 +0200
@@ -1011,6 +1011,7 @@
self.logger.warning(line)
self.logger.warning('==================')
self.logger.warning('')
+ raise
def recompile(self, side):
"""Recompile the sources and produce the final bins"""
@Flow86
Flow86 / EntityMinecart_1.4.0@52.patch
Created April 3, 2012 18:19
fix for forge 1.4.0@52 with lates mcp + forge-conf
--- forge/patches/minecraft/net/minecraft/src/EntityMinecart.java.patch 0000-00-00 00:00:00.000000000 -0000
+++ forge/patches/minecraft/net/minecraft/src/EntityMinecart.java.patch 0000-00-00 00:00:00.000000000 -0000
@@ -256,9 +256,9 @@
- if (this.riddenByEntity != null)
- {
-- this.motionX *= 0.996999979019165D;
+- this.motionX *= 0.997D;
- this.motionY *= 0.0D;
-- this.motionZ *= 0.996999979019165D;