|
579 | 579 |
|
580 | 580 | public boolean func_71278_l() |
581 | 581 | { |
582 | | -@@ -480,64 +586,132 @@ |
| 582 | +@@ -480,64 +586,134 @@ |
583 | 583 | this.field_71317_u = false; |
584 | 584 | } |
585 | 585 |
|
|
727 | 727 | + } |
728 | 728 | + lastTick = curTime; |
729 | 729 | + |
| 730 | ++ org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callServerTickStartEvent(this.field_71315_w + 1); // Paper - Server Tick Events |
730 | 731 | + this.func_71217_p(); |
| 732 | ++ org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callServerTickEndEvent(this.field_71315_w, lastTick, catchupTime); // Paper - Server Tick Events |
731 | 733 | this.field_71296_Q = true; |
732 | 734 | } |
733 | 735 | + // Spigot end |
|
748 | 750 | } |
749 | 751 | catch (Throwable throwable1) |
750 | 752 | { |
751 | | -@@ -553,26 +727,24 @@ |
| 753 | +@@ -553,26 +729,24 @@ |
752 | 754 | crashreport = this.func_71230_b(new CrashReport("Exception in server tick loop", throwable1)); |
753 | 755 | } |
754 | 756 |
|
|
778 | 780 | this.func_71260_j(); |
779 | 781 | } |
780 | 782 | catch (Throwable throwable) |
781 | | -@@ -581,6 +753,8 @@ |
| 783 | +@@ -581,6 +755,8 @@ |
782 | 784 | } |
783 | 785 | finally |
784 | 786 | { |
|
787 | 789 | this.func_71240_o(); |
788 | 790 | } |
789 | 791 | } |
790 | | -@@ -607,6 +781,7 @@ |
| 792 | +@@ -607,6 +783,7 @@ |
791 | 793 | ImageIO.write(bufferedimage, "PNG", new ByteBufOutputStream(bytebuf)); |
792 | 794 | ByteBuf bytebuf1 = Base64.encode(bytebuf); |
793 | 795 | p_184107_1_.func_151320_a("data:image/png;base64," + bytebuf1.toString(StandardCharsets.UTF_8)); |
794 | 796 | + bytebuf1.release(); // Forge: fix MC-122085 |
795 | 797 | } |
796 | 798 | catch (Exception exception) |
797 | 799 | { |
798 | | -@@ -647,7 +822,10 @@ |
| 800 | +@@ -647,7 +824,10 @@ |
799 | 801 |
|
800 | 802 | public void func_71217_p() |
801 | 803 | { |
|
806 | 808 | ++this.field_71315_w; |
807 | 809 |
|
808 | 810 | if (this.field_71295_T) |
809 | | -@@ -669,20 +847,33 @@ |
| 811 | +@@ -669,20 +849,33 @@ |
810 | 812 |
|
811 | 813 | for (int k = 0; k < agameprofile.length; ++k) |
812 | 814 | { |
|
845 | 847 |
|
846 | 848 | this.field_71304_b.func_76320_a("tallying"); |
847 | 849 | this.field_71311_j[this.field_71315_w % 100] = System.nanoTime() - i; |
848 | | -@@ -701,47 +892,87 @@ |
| 850 | +@@ -701,47 +894,87 @@ |
849 | 851 |
|
850 | 852 | this.field_71304_b.func_76319_b(); |
851 | 853 | this.field_71304_b.func_76319_b(); |
|
957 | 959 | } |
958 | 960 | catch (Throwable throwable1) |
959 | 961 | { |
960 | | -@@ -752,7 +983,9 @@ |
| 962 | +@@ -752,7 +985,9 @@ |
961 | 963 |
|
962 | 964 | try |
963 | 965 | { |
|
967 | 969 | } |
968 | 970 | catch (Throwable throwable) |
969 | 971 | { |
970 | | -@@ -761,28 +994,42 @@ |
| 972 | +@@ -761,28 +996,42 @@ |
971 | 973 | throw new ReportedException(crashreport1); |
972 | 974 | } |
973 | 975 |
|
|
1015 | 1017 |
|
1016 | 1018 | this.field_71304_b.func_76319_b(); |
1017 | 1019 | } |
1018 | | -@@ -792,137 +1039,14 @@ |
| 1020 | +@@ -792,137 +1041,14 @@ |
1019 | 1021 | return true; |
1020 | 1022 | } |
1021 | 1023 |
|
|
1158 | 1160 | } |
1159 | 1161 |
|
1160 | 1162 | public File func_71209_f(String p_71209_1_) |
1161 | | -@@ -930,12 +1054,6 @@ |
| 1163 | +@@ -930,12 +1056,6 @@ |
1162 | 1164 | return new File(this.func_71238_n(), p_71209_1_); |
1163 | 1165 | } |
1164 | 1166 |
|
|
1171 | 1173 | public void func_71236_h(String p_71236_1_) |
1172 | 1174 | { |
1173 | 1175 | field_147145_h.warn(p_71236_1_); |
1174 | | -@@ -943,14 +1061,18 @@ |
| 1176 | +@@ -943,14 +1063,18 @@ |
1175 | 1177 |
|
1176 | 1178 | public WorldServer func_71218_a(int p_71218_1_) |
1177 | 1179 | { |
|
1198 | 1200 | } |
1199 | 1201 |
|
1200 | 1202 | public String func_71249_w() |
1201 | | -@@ -978,30 +1100,10 @@ |
| 1203 | +@@ -978,30 +1102,10 @@ |
1202 | 1204 | return this.field_71318_t.func_152600_g(); |
1203 | 1205 | } |
1204 | 1206 |
|
|
1231 | 1233 | } |
1232 | 1234 |
|
1233 | 1235 | public CrashReport func_71230_b(CrashReport p_71230_1_) |
1234 | | -@@ -1016,21 +1118,13 @@ |
| 1236 | +@@ -1016,21 +1120,13 @@ |
1235 | 1237 |
|
1236 | 1238 | if (this.field_71318_t != null) |
1237 | 1239 | { |
|
1256 | 1258 | } |
1257 | 1259 |
|
1258 | 1260 | return p_71230_1_; |
1259 | | -@@ -1038,7 +1132,7 @@ |
| 1261 | +@@ -1038,7 +1134,7 @@ |
1260 | 1262 |
|
1261 | 1263 | public List<String> func_184104_a(ICommandSender p_184104_1_, String p_184104_2_, @Nullable BlockPos p_184104_3_, boolean p_184104_4_) |
1262 | 1264 | { |
|
1265 | 1267 | boolean flag = p_184104_2_.startsWith("/"); |
1266 | 1268 |
|
1267 | 1269 | if (flag) |
1268 | | -@@ -1055,11 +1149,9 @@ |
| 1270 | +@@ -1055,11 +1151,9 @@ |
1269 | 1271 | { |
1270 | 1272 | if (CommandBase.func_71523_a(s2, s1)) |
1271 | 1273 | { |
|
1278 | 1280 | } |
1279 | 1281 | else |
1280 | 1282 | { |
1281 | | -@@ -1072,37 +1164,37 @@ |
| 1283 | +@@ -1072,37 +1166,37 @@ |
1282 | 1284 | { |
1283 | 1285 | if (flag1 && !p_184104_4_) |
1284 | 1286 | { |
|
1325 | 1327 | public boolean func_70003_b(int p_70003_1_, String p_70003_2_) |
1326 | 1328 | { |
1327 | 1329 | return true; |
1328 | | -@@ -1118,18 +1210,6 @@ |
| 1330 | +@@ -1118,18 +1212,6 @@ |
1329 | 1331 | return this.field_71292_I; |
1330 | 1332 | } |
1331 | 1333 |
|
|
1344 | 1346 | public String func_71214_G() |
1345 | 1347 | { |
1346 | 1348 | return this.field_71293_J; |
1347 | | -@@ -1174,24 +1254,24 @@ |
| 1349 | +@@ -1174,24 +1256,24 @@ |
1348 | 1350 |
|
1349 | 1351 | public void func_147139_a(EnumDifficulty p_147139_1_) |
1350 | 1352 | { |
|
1378 | 1380 | } |
1379 | 1381 | } |
1380 | 1382 | } |
1381 | | -@@ -1238,58 +1318,55 @@ |
| 1383 | +@@ -1238,58 +1320,55 @@ |
1382 | 1384 | this.field_175588_P = p_180507_2_; |
1383 | 1385 | } |
1384 | 1386 |
|
|
1462 | 1464 | public boolean func_70002_Q() |
1463 | 1465 | { |
1464 | 1466 | return true; |
1465 | | -@@ -1299,7 +1376,8 @@ |
| 1467 | +@@ -1299,7 +1378,8 @@ |
1466 | 1468 |
|
1467 | 1469 | public boolean func_71266_T() |
1468 | 1470 | { |
|
1472 | 1474 | } |
1473 | 1475 |
|
1474 | 1476 | public void func_71229_d(boolean p_71229_1_) |
1475 | | -@@ -1312,12 +1390,6 @@ |
| 1477 | +@@ -1312,12 +1392,6 @@ |
1476 | 1478 | return this.field_190519_A; |
1477 | 1479 | } |
1478 | 1480 |
|
|
1485 | 1487 | public boolean func_71268_U() |
1486 | 1488 | { |
1487 | 1489 | return this.field_71324_y; |
1488 | | -@@ -1394,14 +1466,14 @@ |
| 1490 | +@@ -1394,14 +1468,14 @@ |
1489 | 1491 |
|
1490 | 1492 | public void func_184105_a(PlayerList p_184105_1_) |
1491 | 1493 | { |
|
1503 | 1505 | } |
1504 | 1506 | } |
1505 | 1507 |
|
1506 | | -@@ -1439,16 +1511,9 @@ |
| 1508 | +@@ -1439,16 +1513,9 @@ |
1507 | 1509 | return this.field_71307_n; |
1508 | 1510 | } |
1509 | 1511 |
|
|
1521 | 1523 | } |
1522 | 1524 |
|
1523 | 1525 | public boolean func_175579_a(World p_175579_1_, BlockPos p_175579_2_, EntityPlayer p_175579_3_) |
1524 | | -@@ -1456,12 +1521,6 @@ |
| 1526 | +@@ -1456,12 +1523,6 @@ |
1525 | 1527 | return false; |
1526 | 1528 | } |
1527 | 1529 |
|
|
1534 | 1536 | public boolean func_104056_am() |
1535 | 1537 | { |
1536 | 1538 | return this.field_104057_T; |
1537 | | -@@ -1515,11 +1574,11 @@ |
| 1539 | +@@ -1515,11 +1576,11 @@ |
1538 | 1540 | @Nullable |
1539 | 1541 | public Entity func_175576_a(UUID p_175576_1_) |
1540 | 1542 | { |
|
1549 | 1551 |
|
1550 | 1552 | if (entity != null) |
1551 | 1553 | { |
1552 | | -@@ -1531,18 +1590,21 @@ |
| 1554 | +@@ -1531,18 +1592,21 @@ |
1553 | 1555 | return null; |
1554 | 1556 | } |
1555 | 1557 |
|
|
1574 | 1576 | public int func_175580_aG() |
1575 | 1577 | { |
1576 | 1578 | return 29999984; |
1577 | | -@@ -1552,37 +1614,34 @@ |
| 1579 | +@@ -1552,37 +1616,34 @@ |
1578 | 1580 | { |
1579 | 1581 | Validate.notNull(p_175586_1_); |
1580 | 1582 |
|
|
1621 | 1623 | public boolean func_152345_ab() |
1622 | 1624 | { |
1623 | 1625 | return Thread.currentThread() == this.field_175590_aa; |
1624 | | -@@ -1593,18 +1652,6 @@ |
| 1626 | +@@ -1593,18 +1654,6 @@ |
1625 | 1627 | return 256; |
1626 | 1628 | } |
1627 | 1629 |
|
|
1640 | 1642 | public int func_184108_a(@Nullable WorldServer p_184108_1_) |
1641 | 1643 | { |
1642 | 1644 | return p_184108_1_ != null ? p_184108_1_.func_82736_K().func_180263_c("spawnRadius") : 10; |
1643 | | -@@ -1612,12 +1659,12 @@ |
| 1645 | +@@ -1612,12 +1661,12 @@ |
1644 | 1646 |
|
1645 | 1647 | public AdvancementManager func_191949_aK() |
1646 | 1648 | { |
|
1655 | 1657 | } |
1656 | 1658 |
|
1657 | 1659 | public void func_193031_aM() |
1658 | | -@@ -1625,7 +1672,7 @@ |
| 1660 | +@@ -1625,7 +1674,7 @@ |
1659 | 1661 | if (this.func_152345_ab()) |
1660 | 1662 | { |
1661 | 1663 | this.func_184103_al().func_72389_g(); |
|
1664 | 1666 | this.func_191949_aK().func_192779_a(); |
1665 | 1667 | this.func_193030_aL().func_193059_f(); |
1666 | 1668 | this.func_184103_al().func_193244_w(); |
1667 | | -@@ -1634,5 +1681,151 @@ |
| 1669 | +@@ -1634,5 +1683,151 @@ |
1668 | 1670 | { |
1669 | 1671 | this.func_152344_a(this::func_193031_aM); |
1670 | 1672 | } |
|
0 commit comments