mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-20 12:19:58 +00:00
Merge pull request #1 from D-Cysteine/master
Prevent calling Block.getHarvestLevel() with parameter > 15
This commit is contained in:
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -2,4 +2,4 @@ mc_version=1.7.10
|
||||
forge_version=10.13.4.1614-1.7.10
|
||||
ccl_version=1.1.3.127
|
||||
nei_version=1.0.3.+
|
||||
mod_version=1.2.1
|
||||
mod_version=1.2.2
|
||||
@@ -104,7 +104,8 @@ class BlockMicroMaterial(val block:Block, val meta:Int = 0) extends IMicroMateri
|
||||
|
||||
def toolClasses = Seq("axe", "pickaxe", "shovel")
|
||||
|
||||
def getCutterStrength = block.getHarvestLevel(meta)
|
||||
// meta > 15 will throw ArrayIndexOutOfBoundsException
|
||||
def getCutterStrength = block.getHarvestLevel(meta % 16)
|
||||
|
||||
def getSound = block.stepSound
|
||||
|
||||
|
||||
Reference in new issue
Block a user