Why did this still compile earlier .-.

This commit is contained in:
Florian Nücke 2016-07-14 19:01:19 +02:00
parent b4389cc70d
commit a06dbdba3e
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class ColorizeRecipe(target: Item, source: Array[Item] = null) extends Container
if (dye.isEmpty)
return null
val itemColor = EntitySheep.func_175513_a(Color.byOreName(dye.get))
val itemColor = EntitySheep.getDyeRgb(Color.byOreName(dye.get))
val red = (itemColor(0) * 255.0F).toInt
val green = (itemColor(1) * 255.0F).toInt
val blue = (itemColor(2) * 255.0F).toInt

View File

@ -8,7 +8,7 @@ import net.minecraft.util.StatCollector
class DamageSourceWithRandomCause(name: String, numCauses: Int) extends DamageSource(name) {
override def getDeathMessage(damagee: EntityLivingBase): IChatComponent = {
val damager = damagee.func_94060_bK
val damager = damagee.getAttackingEntity
val format = "death.attack." + damageType + "." + (damagee.worldObj.rand.nextInt(numCauses) + 1)
val withCauseFormat = format + ".player"
if (damager != null && StatCollector.canTranslate(withCauseFormat))