|
644 | 644 | } |
645 | 645 |
|
646 | 646 | PlayerInteractionManager playerinteractionmanager; |
647 | | -@@ -497,101 +742,226 @@ |
| 647 | +@@ -497,101 +742,232 @@ |
648 | 648 | return new EntityPlayerMP(this.field_72400_f, this.field_72400_f.func_71218_a(0), p_148545_1_, playerinteractionmanager); |
649 | 649 | } |
650 | 650 |
|
|
761 | 761 | else |
762 | 762 | { |
763 | 763 | - playerinteractionmanager = new PlayerInteractionManager(this.field_72400_f.func_71218_a(p_72368_1_.field_71093_bK)); |
764 | | -+ playerinteractionmanager = new PlayerInteractionManager(this.mcServer.getWorld(playerIn.dimension)); |
765 | | - } |
766 | | - |
| 764 | +- } |
| 765 | +- |
767 | 766 | - EntityPlayerMP entityplayermp = new EntityPlayerMP( |
768 | 767 | - this.field_72400_f, this.field_72400_f.func_71218_a(p_72368_1_.field_71093_bK), p_72368_1_.func_146103_bH(), playerinteractionmanager |
769 | 768 | - ); |
|
774 | 773 | - entityplayermp.func_184819_a(p_72368_1_.func_184591_cq()); |
775 | 774 | - |
776 | 775 | - for (String s : p_72368_1_.func_184216_O()) |
| 776 | ++ playerinteractionmanager = new PlayerInteractionManager(this.mcServer.getWorld(playerIn.dimension)); |
| 777 | ++ } |
| 778 | ++ |
777 | 779 | + EntityPlayerMP entityplayermp = new EntityPlayerMP(this.mcServer, this.mcServer.getWorld(playerIn.dimension), playerIn.getGameProfile(), playerinteractionmanager); |
778 | 780 | + */ |
779 | 781 | + EntityPlayerMP entityplayermp = playerIn; |
| 782 | ++ // CatRoom start - Call construct event and re-gather capabilities |
| 783 | ++ if (catserver.server.CatServer.getConfig().callConstructCapabilityEventOnRespawn) { |
| 784 | ++ net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.entity.EntityEvent.EntityConstructing(entityplayermp)); |
| 785 | ++ ((Entity) entityplayermp).capabilities = net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(entityplayermp); |
| 786 | ++ } |
| 787 | ++ // CatRoom end - Call construct event and re-gather capabilities |
780 | 788 | + org.bukkit.World fromWorld = playerIn.getBukkitEntity().getWorld(); |
781 | 789 | + playerIn.field_71136_j = false; |
782 | 790 | + |
|
940 | 948 | return entityplayermp; |
941 | 949 | } |
942 | 950 |
|
943 | | -@@ -599,75 +969,147 @@ |
| 951 | +@@ -599,75 +975,147 @@ |
944 | 952 | { |
945 | 953 | GameProfile gameprofile = p_187243_1_.func_146103_bH(); |
946 | 954 | int i = this.func_152596_g(gameprofile) ? this.field_72414_i.func_187452_a(gameprofile) : 0; |
|
1143 | 1151 | { |
1144 | 1152 | BlockPos blockpos; |
1145 | 1153 |
|
1146 | | -@@ -693,7 +1135,7 @@ |
| 1154 | +@@ -693,7 +1141,7 @@ |
1147 | 1155 |
|
1148 | 1156 | p_82448_3_.field_72984_F.func_76319_b(); |
1149 | 1157 |
|
|
1152 | 1160 | { |
1153 | 1161 | p_82448_3_.field_72984_F.func_76320_a("placing"); |
1154 | 1162 | d0 = (double)MathHelper.func_76125_a((int)d0, -29999872, 29999872); |
1155 | | -@@ -702,7 +1144,8 @@ |
| 1163 | +@@ -702,7 +1150,8 @@ |
1156 | 1164 | if (p_82448_1_.func_70089_S()) |
1157 | 1165 | { |
1158 | 1166 | p_82448_1_.func_70012_b(d0, p_82448_1_.field_70163_u, d1, p_82448_1_.field_70177_z, p_82448_1_.field_70125_A); |
|
1162 | 1170 | p_82448_4_.func_72838_d(p_82448_1_); |
1163 | 1171 | p_82448_4_.func_72866_a(p_82448_1_, false); |
1164 | 1172 | } |
1165 | | -@@ -713,11 +1156,155 @@ |
| 1173 | +@@ -713,11 +1162,155 @@ |
1166 | 1174 | p_82448_1_.func_70029_a(p_82448_4_); |
1167 | 1175 | } |
1168 | 1176 |
|
|
1319 | 1327 | this.field_72408_o = 0; |
1320 | 1328 | } |
1321 | 1329 | } |
1322 | | -@@ -726,9 +1313,27 @@ |
| 1330 | +@@ -726,9 +1319,27 @@ |
1323 | 1331 | { |
1324 | 1332 | for (int i = 0; i < this.field_72404_b.size(); ++i) |
1325 | 1333 | { |
|
1350 | 1358 |
|
1351 | 1359 | public void func_148537_a(Packet<?> p_148537_1_, int p_148537_2_) |
1352 | 1360 | { |
1353 | | -@@ -795,11 +1400,11 @@ |
| 1361 | +@@ -795,11 +1406,11 @@ |
1354 | 1362 | s = s + ", "; |
1355 | 1363 | } |
1356 | 1364 |
|
|
1364 | 1372 | } |
1365 | 1373 | } |
1366 | 1374 |
|
1367 | | -@@ -812,7 +1417,7 @@ |
| 1375 | +@@ -812,7 +1423,7 @@ |
1368 | 1376 |
|
1369 | 1377 | for (int i = 0; i < this.field_72404_b.size(); ++i) |
1370 | 1378 | { |
|
1373 | 1381 | } |
1374 | 1382 |
|
1375 | 1383 | return astring; |
1376 | | -@@ -824,7 +1429,7 @@ |
| 1384 | +@@ -824,7 +1435,7 @@ |
1377 | 1385 |
|
1378 | 1386 | for (int i = 0; i < this.field_72404_b.size(); ++i) |
1379 | 1387 | { |
|
1382 | 1390 | } |
1383 | 1391 |
|
1384 | 1392 | return agameprofile; |
1385 | | -@@ -845,12 +1450,20 @@ |
| 1393 | +@@ -845,12 +1456,20 @@ |
1386 | 1394 | int i = this.field_72400_f.func_110455_j(); |
1387 | 1395 | this.field_72414_i.func_152687_a(new UserListOpsEntry(p_152605_1_, this.field_72400_f.func_110455_j(), this.field_72414_i.func_183026_b(p_152605_1_))); |
1388 | 1396 | this.func_187245_a(this.func_177451_a(p_152605_1_.getId()), i); |
|
1403 | 1411 | } |
1404 | 1412 |
|
1405 | 1413 | private void func_187245_a(EntityPlayerMP p_187245_1_, int p_187245_2_) |
1406 | | -@@ -883,11 +1496,7 @@ |
| 1414 | +@@ -883,11 +1502,7 @@ |
1407 | 1415 |
|
1408 | 1416 | public boolean func_152596_g(GameProfile p_152596_1_) |
1409 | 1417 | { |
|
1416 | 1424 | } |
1417 | 1425 |
|
1418 | 1426 | @Nullable |
1419 | | -@@ -904,19 +1513,17 @@ |
| 1427 | +@@ -904,19 +1519,17 @@ |
1420 | 1428 | return null; |
1421 | 1429 | } |
1422 | 1430 |
|
|
1443 | 1451 |
|
1444 | 1452 | if (entityplayermp != p_148543_1_ && entityplayermp.field_71093_bK == p_148543_10_) |
1445 | 1453 | { |
1446 | | -@@ -976,25 +1583,29 @@ |
| 1454 | +@@ -976,25 +1589,29 @@ |
1447 | 1455 |
|
1448 | 1456 | public void func_72354_b(EntityPlayerMP p_72354_1_, WorldServer p_72354_2_) |
1449 | 1457 | { |
|
1480 | 1488 | p_72385_1_.field_71135_a.func_147359_a(new SPacketHeldItemChange(p_72385_1_.field_71071_by.field_70461_c)); |
1481 | 1489 | } |
1482 | 1490 |
|
1483 | | -@@ -1010,13 +1621,7 @@ |
| 1491 | +@@ -1010,13 +1627,7 @@ |
1484 | 1492 |
|
1485 | 1493 | public String[] func_72373_m() |
1486 | 1494 | { |
|
1495 | 1503 | } |
1496 | 1504 |
|
1497 | 1505 | public void func_72371_a(boolean p_72371_1_) |
1498 | | -@@ -1026,7 +1631,7 @@ |
| 1506 | +@@ -1026,7 +1637,7 @@ |
1499 | 1507 |
|
1500 | 1508 | public List<EntityPlayerMP> func_72382_j(String p_72382_1_) |
1501 | 1509 | { |
|
1504 | 1512 |
|
1505 | 1513 | for (EntityPlayerMP entityplayermp : this.field_72404_b) |
1506 | 1514 | { |
1507 | | -@@ -1082,9 +1687,15 @@ |
| 1515 | +@@ -1082,9 +1693,15 @@ |
1508 | 1516 |
|
1509 | 1517 | public void func_72392_r() |
1510 | 1518 | { |
|
1523 | 1531 | } |
1524 | 1532 | } |
1525 | 1533 |
|
1526 | | -@@ -1092,7 +1703,10 @@ |
| 1534 | +@@ -1092,7 +1709,10 @@ |
1527 | 1535 | { |
1528 | 1536 | this.field_72400_f.func_145747_a(p_148544_1_); |
1529 | 1537 | ChatType chattype = p_148544_2_ ? ChatType.SYSTEM : ChatType.CHAT; |
|
1535 | 1543 | } |
1536 | 1544 |
|
1537 | 1545 | public void func_148539_a(ITextComponent p_148539_1_) |
1538 | | -@@ -1100,10 +1714,11 @@ |
| 1546 | +@@ -1100,10 +1720,11 @@ |
1539 | 1547 | this.func_148544_a(p_148539_1_, true); |
1540 | 1548 | } |
1541 | 1549 |
|
|
1548 | 1556 |
|
1549 | 1557 | if (statisticsmanagerserver == null) |
1550 | 1558 | { |
1551 | | -@@ -1128,6 +1743,8 @@ |
| 1559 | +@@ -1128,6 +1749,8 @@ |
1552 | 1560 | return statisticsmanagerserver; |
1553 | 1561 | } |
1554 | 1562 |
|
|
1557 | 1565 | public PlayerAdvancements func_192054_h(EntityPlayerMP p_192054_1_) |
1558 | 1566 | { |
1559 | 1567 | UUID uuid = p_192054_1_.func_110124_au(); |
1560 | | -@@ -1151,7 +1768,7 @@ |
| 1568 | +@@ -1151,7 +1774,7 @@ |
1561 | 1569 |
|
1562 | 1570 | if (this.field_72400_f.field_71305_c != null) |
1563 | 1571 | { |
|
1566 | 1574 | { |
1567 | 1575 | if (worldserver != null) |
1568 | 1576 | { |
1569 | | -@@ -1183,5 +1800,11 @@ |
| 1577 | +@@ -1183,5 +1806,11 @@ |
1570 | 1578 | { |
1571 | 1579 | playeradvancements.func_193766_b(); |
1572 | 1580 | } |
|
0 commit comments