Fix javac compile issues.
This commit is contained in:
parent
27afdc8a27
commit
00fc29d40d
5 changed files with 14 additions and 7 deletions
|
@ -50,7 +50,7 @@ ext {
|
|||
MAPPING_CHANNEL = 'snapshot'
|
||||
MAPPING_VERSION = '20190719-1.14.3'
|
||||
MC_VERSION = '1.14.4'
|
||||
MCP_VERSION = '20190719.173545'
|
||||
MCP_VERSION = '20190719.225934'
|
||||
}
|
||||
|
||||
project(':mcp') {
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
{
|
||||
lvt_13_5_ = this.field_177598_f.func_199004_b(resourcelocation1).stream().map((p_217839_1_) -> {
|
||||
try (InputStream inputstream = p_217839_1_.func_199027_b()) {
|
||||
- Pair pair2 = Pair.of(p_217839_1_.func_199026_d(), BlockModelDefinition.func_209577_a(this.field_209610_F, new InputStreamReader(inputstream, StandardCharsets.UTF_8)));
|
||||
+ Pair<String,BlockModelDefinition> pair2 = Pair.of(p_217839_1_.func_199026_d(), BlockModelDefinition.fromJson(this.field_209610_F, new InputStreamReader(inputstream, StandardCharsets.UTF_8), p_209598_1_));
|
||||
- Pair<String, BlockModelDefinition> pair2 = Pair.of(p_217839_1_.func_199026_d(), BlockModelDefinition.func_209577_a(this.field_209610_F, new InputStreamReader(inputstream, StandardCharsets.UTF_8)));
|
||||
+ Pair<String, BlockModelDefinition> pair2 = Pair.of(p_217839_1_.func_199026_d(), BlockModelDefinition.fromJson(this.field_209610_F, new InputStreamReader(inputstream, StandardCharsets.UTF_8), p_209598_1_));
|
||||
return pair2;
|
||||
} catch (Exception exception1) {
|
||||
throw new ModelBakery.BlockStateDefinitionException(String.format("Exception loading blockstate definition: '%s' in resourcepack: '%s': %s", p_217839_1_.func_199029_a(), p_217839_1_.func_199026_d(), exception1.getMessage()));
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
AbstractChunkProvider abstractchunkprovider = this.func_72863_F();
|
||||
Chunk chunk = abstractchunkprovider.func_217205_a(p_180494_1_.func_177958_n() >> 4, p_180494_1_.func_177952_p() >> 4, false);
|
||||
if (chunk != null) {
|
||||
@@ -169,17 +177,45 @@
|
||||
@@ -169,23 +177,51 @@
|
||||
} else {
|
||||
Chunk chunk = this.func_175726_f(p_180501_1_);
|
||||
Block block = p_180501_2_.func_177230_c();
|
||||
|
@ -87,6 +87,13 @@
|
|||
if (blockstate1 == p_180501_2_) {
|
||||
if (blockstate != blockstate1) {
|
||||
this.func_225319_b(p_180501_1_, blockstate, blockstate1);
|
||||
}
|
||||
|
||||
- if ((p_180501_3_ & 2) != 0 && (!this.field_72995_K || (p_180501_3_ & 4) == 0) && (this.field_72995_K || chunk.func_217321_u() != null && chunk.func_217321_u().func_219065_a(ChunkHolder.LocationType.TICKING))) {
|
||||
+ if ((p_180501_3_ & 2) != 0 && (!this.field_72995_K || (p_180501_3_ & 4) == 0) && (this.field_72995_K || chunk == null || chunk.func_217321_u() != null && chunk.func_217321_u().func_219065_a(ChunkHolder.LocationType.TICKING))) {
|
||||
this.func_184138_a(p_180501_1_, blockstate, p_180501_2_, p_180501_3_);
|
||||
}
|
||||
|
||||
@@ -205,8 +241,6 @@
|
||||
|
||||
this.func_217393_a(p_180501_1_, blockstate, blockstate1);
|
||||
|
|
|
@ -185,7 +185,7 @@
|
|||
}
|
||||
|
||||
- EntityClassification entityclassification = entity.func_200600_R().func_220339_d();
|
||||
+ EntityClassification entityclassification = entity.getClassification(true);
|
||||
+ EntityClassification entityclassification = entity.getClassification(true);
|
||||
if (entityclassification != EntityClassification.MISC && this.func_72863_F().func_223435_b(entity)) {
|
||||
object2intmap.mergeInt(entityclassification, 1, Integer::sum);
|
||||
}
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
|
||||
mobentity.func_70012_b((double)f, (double)k, (double)f1, p_222263_1_.field_73012_v.nextFloat() * 360.0F, 0.0F);
|
||||
- if (d0 > 16384.0D && mobentity.func_213397_c(d0) || !mobentity.func_213380_a(p_222263_1_, SpawnReason.NATURAL) || !mobentity.func_205019_a(p_222263_1_)) {
|
||||
+ int canSpawn = net.minecraftforge.common.ForgeHooks.canEntitySpawn(mobentity, p_222263_1_, f, k, f1, null);
|
||||
+ if (canSpawn == -1 || (canSpawn == 0 && d0 > 16384.0D && (mobentity.func_213397_c(d0) || !mobentity.func_213380_a(p_222263_1_, SpawnReason.NATURAL) || !mobentity.func_205019_a(p_222263_1_)))) {
|
||||
+ int canSpawn = net.minecraftforge.common.ForgeHooks.canEntitySpawn(mobentity, p_222263_1_, f, k, f1, null);
|
||||
+ if (canSpawn == -1 || (canSpawn == 0 && d0 > 16384.0D && (mobentity.func_213397_c(d0) || !mobentity.func_213380_a(p_222263_1_, SpawnReason.NATURAL) || !mobentity.func_205019_a(p_222263_1_)))) {
|
||||
break label115;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue