mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-04-05 18:26:58 +00:00
Bump Forge version
This commit is contained in:
parent
b1139a4bf6
commit
4243f30308
@ -9,7 +9,7 @@ buildscript {
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.google.code.gson:gson:2.8.1'
|
||||
classpath 'net.minecraftforge.gradle:ForgeGradle:3.0.142'
|
||||
classpath 'net.minecraftforge.gradle:ForgeGradle:3.0.147'
|
||||
classpath 'net.sf.proguard:proguard-gradle:6.1.0beta2'
|
||||
classpath 'org.ajoberstar.grgit:grgit-gradle:3.0.0'
|
||||
}
|
||||
|
@ -3,5 +3,5 @@ mod_version=1.84.1
|
||||
|
||||
# Minecraft properties
|
||||
mc_version=1.14.4
|
||||
forge_version=28.1.1
|
||||
forge_version=28.1.26
|
||||
mappings_version=20190912-1.14.3
|
||||
|
@ -12,8 +12,7 @@ import dan200.computercraft.api.turtle.event.TurtleRefuelEvent;
|
||||
import dan200.computercraft.shared.util.InventoryUtil;
|
||||
import dan200.computercraft.shared.util.WorldUtil;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.FurnaceTileEntity;
|
||||
import net.minecraftforge.event.ForgeEventFactory;
|
||||
import net.minecraftforge.common.ForgeHooks;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
|
||||
@ -52,15 +51,9 @@ public final class FurnaceRefuelHandler implements TurtleRefuelEvent.Handler
|
||||
return fuelToGive;
|
||||
}
|
||||
|
||||
|
||||
private static int getFuelPerItem( @Nonnull ItemStack stack )
|
||||
{
|
||||
int basicBurnTime = stack.getBurnTime();
|
||||
int burnTime = ForgeEventFactory.getItemBurnTime(
|
||||
stack,
|
||||
basicBurnTime == -1 ? FurnaceTileEntity.getBurnTimes().getOrDefault( stack.getItem(), 0 ) : basicBurnTime
|
||||
);
|
||||
return (burnTime * 5) / 100;
|
||||
return (ForgeHooks.getBurnTime( stack ) * 5) / 100;
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
|
Loading…
x
Reference in New Issue
Block a user