@@ -103,6 +103,7 @@ public void Tier1(TileEntityT1 te) {
103103 ResearchValue researchValue = ResearchItemUtil .getResearchPoints (info );
104104 if (researchValue != null ) {
105105 // Consume the input
106+ ItemStack old = input .copy ();
106107 input .stackSize --;
107108 te .inventory [mainSlot ] = (input .stackSize <= 0 ) ? null : input ;
108109 ItemStack itemStack ;
@@ -112,7 +113,7 @@ public void Tier1(TileEntityT1 te) {
112113 } else {
113114 itemStack = new ItemStack (hbmenhanced .researchPoint , 1 );
114115 }
115- getItemValues .setValues (researchValue , itemStack , te .team , input );
116+ getItemValues .setValues (researchValue , itemStack , te .team , old );
116117 te .inventory [outputSlot ] = itemStack ;
117118
118119 } else {
@@ -197,6 +198,7 @@ public void Tier2(TileEntityT2 te) {
197198 ResearchValue researchValue = ResearchItemUtil .getResearchPoints (info );
198199 if (researchValue != null ) {
199200 // Consume the input
201+ ItemStack old = input .copy ();
200202 input .stackSize --;
201203 te .inventory [mainSlot ] = (input .stackSize <= 0 ) ? null : input ;
202204
@@ -208,7 +210,7 @@ public void Tier2(TileEntityT2 te) {
208210 } else {
209211 itemStack = new ItemStack (hbmenhanced .researchPoint , 1 );
210212 }
211- getItemValues .setValues (researchValue , itemStack , te .team , input );
213+ getItemValues .setValues (researchValue , itemStack , te .team , old );
212214 te .inventory [outputSlot ] = itemStack ;
213215 } else {
214216 System .out .println ("researchValue null at completion" );
@@ -290,6 +292,7 @@ public void Tier3(TileEntityT3 te) {
290292 ResearchValue researchValue = ResearchItemUtil .getResearchPoints (info );
291293 if (researchValue != null ) {
292294 // consume input
295+ ItemStack old = input .copy ();
293296 input .stackSize --;
294297 te .inventory [mainSlot ] = (input .stackSize <= 0 ) ? null : input ;
295298
@@ -301,7 +304,7 @@ public void Tier3(TileEntityT3 te) {
301304 } else {
302305 itemStack = new ItemStack (hbmenhanced .researchPoint , 1 );
303306 }
304- getItemValues .setValues (researchValue , itemStack , te .team , input );
307+ getItemValues .setValues (researchValue , itemStack , te .team , old );
305308 te .inventory [outputSlot ] = itemStack ;
306309 } else {
307310 System .out .println ("researchValue null at completion" );
0 commit comments