Guest User

Untitled

a guest
Dec 24th, 2011
41
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: settings.ini
  2. ===================================================================
  3. --- settings.ini (revision 101)
  4. +++ settings.ini (working copy)
  5. @@ -26,6 +26,6 @@
  6. Types=Chicken,Spider
  7.  
  8. [Authentication]
  9. -Server=www.minecraft.net
  10. +Server=session.minecraft.net
  11. Address=/game/checkserver.jsp?user=%USERNAME%&serverId=%SERVERID%
  12. Authenticate=0
  13. Index: source/cAuthenticator.cpp
  14. ===================================================================
  15. --- source/cAuthenticator.cpp (revision 101)
  16. +++ source/cAuthenticator.cpp (working copy)
  17. @@ -23,7 +23,7 @@
  18. bool cAuthenticator::Authenticate( const char* a_PlayerName, const char* a_ServerID )
  19. {
  20. // Default values
  21. - std::string Server = "www.minecraft.net";
  22. + std::string Server = "session.minecraft.net";
  23. std::string Address = "/game/checkserver.jsp?user=%USERNAME%&serverId=%SERVERID%";
  24. bool bAuthenticate = true;
  25.  
  26. Index: source/cChestEntity.cpp
  27. ===================================================================
  28. --- source/cChestEntity.cpp (revision 101)
  29. +++ source/cChestEntity.cpp (working copy)
  30. @@ -156,7 +156,7 @@
  31. cWindow* Window = new cWindow( this, true );
  32. Window->SetSlots( m_Content, c_ChestHeight*c_ChestWidth );
  33. Window->SetWindowID( 1 );
  34. - Window->SetWindowType( 0 );
  35. + Window->SetWindowType( cWindow::Chest );
  36. Window->SetWindowTitle("UberChest");
  37. OpenWindow( Window );
  38. }
  39. Index: source/cClientHandle.cpp
  40. ===================================================================
  41. --- source/cClientHandle.cpp (revision 101)
  42. +++ source/cClientHandle.cpp (working copy)
  43. @@ -1207,6 +1207,7 @@
  44. LoginResponse.m_ServerMode = m_Player->GetGameMode(); //set gamemode from player.
  45. LoginResponse.m_MapSeed = 0;
  46. LoginResponse.m_Dimension = 0;
  47. + LoginResponse.m_MaxPlayers = (unsigned char)cRoot::Get()->GetWorld()->GetMaxPlayers();
  48. Send( LoginResponse );
  49.  
  50. // Send Weather if raining:
  51. Index: source/cCraftingWindow.cpp
  52. ===================================================================
  53. --- source/cCraftingWindow.cpp (revision 101)
  54. +++ source/cCraftingWindow.cpp (working copy)
  55. @@ -15,7 +15,7 @@
  56. : cWindow( a_Owner, a_bInventoryVisible )
  57. {
  58. SetWindowID( 1 );
  59. - SetWindowType( 1 ); // Workbench
  60. + SetWindowType( cWindow::Workbench ); // Workbench
  61.  
  62. cItem* Slots = new cItem[10];
  63. SetSlots( Slots, 10 );
  64. Index: source/cFurnaceWindow.cpp
  65. ===================================================================
  66. --- source/cFurnaceWindow.cpp (revision 101)
  67. +++ source/cFurnaceWindow.cpp (working copy)
  68. @@ -12,7 +12,7 @@
  69. , m_Furnace( a_Owner )
  70. {
  71. SetWindowID( 1 );
  72. - SetWindowType( 2 ); // Furnace
  73. + SetWindowType( cWindow::Furnace ); // Furnace
  74. }
  75.  
  76. void cFurnaceWindow::Clicked( cPacket_WindowClick* a_ClickPacket, cPlayer & a_Player )
  77. Index: source/cWindow.h
  78. ===================================================================
  79. --- source/cWindow.h (revision 101)
  80. +++ source/cWindow.h (working copy)
  81. @@ -17,6 +17,15 @@
  82.  
  83. int GetWindowID() { return m_WindowID; }
  84. void SetWindowID( int a_WindowID ) { m_WindowID = a_WindowID; }
  85. +
  86. + static enum WindowType {
  87. + Chest,
  88. + Workbench,
  89. + Furnace,
  90. + Dispenser,
  91. + Enchantment,
  92. + Brewery
  93. + };
  94.  
  95. int GetWindowType() { return m_WindowType; }
  96. void SetWindowType( int a_WindowType ) { m_WindowType = a_WindowType; }
RAW Paste Data