Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: settings.ini
- ===================================================================
- --- settings.ini (revision 101)
- +++ settings.ini (working copy)
- @@ -26,6 +26,6 @@
- Types=Chicken,Spider
- [Authentication]
- -Server=www.minecraft.net
- +Server=session.minecraft.net
- Address=/game/checkserver.jsp?user=%USERNAME%&serverId=%SERVERID%
- Authenticate=0
- Index: source/cAuthenticator.cpp
- ===================================================================
- --- source/cAuthenticator.cpp (revision 101)
- +++ source/cAuthenticator.cpp (working copy)
- @@ -23,7 +23,7 @@
- bool cAuthenticator::Authenticate( const char* a_PlayerName, const char* a_ServerID )
- {
- // Default values
- - std::string Server = "www.minecraft.net";
- + std::string Server = "session.minecraft.net";
- std::string Address = "/game/checkserver.jsp?user=%USERNAME%&serverId=%SERVERID%";
- bool bAuthenticate = true;
- Index: source/cChestEntity.cpp
- ===================================================================
- --- source/cChestEntity.cpp (revision 101)
- +++ source/cChestEntity.cpp (working copy)
- @@ -156,7 +156,7 @@
- cWindow* Window = new cWindow( this, true );
- Window->SetSlots( m_Content, c_ChestHeight*c_ChestWidth );
- Window->SetWindowID( 1 );
- - Window->SetWindowType( 0 );
- + Window->SetWindowType( cWindow::Chest );
- Window->SetWindowTitle("UberChest");
- OpenWindow( Window );
- }
- Index: source/cClientHandle.cpp
- ===================================================================
- --- source/cClientHandle.cpp (revision 101)
- +++ source/cClientHandle.cpp (working copy)
- @@ -1207,6 +1207,7 @@
- LoginResponse.m_ServerMode = m_Player->GetGameMode(); //set gamemode from player.
- LoginResponse.m_MapSeed = 0;
- LoginResponse.m_Dimension = 0;
- + LoginResponse.m_MaxPlayers = (unsigned char)cRoot::Get()->GetWorld()->GetMaxPlayers();
- Send( LoginResponse );
- // Send Weather if raining:
- Index: source/cCraftingWindow.cpp
- ===================================================================
- --- source/cCraftingWindow.cpp (revision 101)
- +++ source/cCraftingWindow.cpp (working copy)
- @@ -15,7 +15,7 @@
- : cWindow( a_Owner, a_bInventoryVisible )
- {
- SetWindowID( 1 );
- - SetWindowType( 1 ); // Workbench
- + SetWindowType( cWindow::Workbench ); // Workbench
- cItem* Slots = new cItem[10];
- SetSlots( Slots, 10 );
- Index: source/cFurnaceWindow.cpp
- ===================================================================
- --- source/cFurnaceWindow.cpp (revision 101)
- +++ source/cFurnaceWindow.cpp (working copy)
- @@ -12,7 +12,7 @@
- , m_Furnace( a_Owner )
- {
- SetWindowID( 1 );
- - SetWindowType( 2 ); // Furnace
- + SetWindowType( cWindow::Furnace ); // Furnace
- }
- void cFurnaceWindow::Clicked( cPacket_WindowClick* a_ClickPacket, cPlayer & a_Player )
- Index: source/cWindow.h
- ===================================================================
- --- source/cWindow.h (revision 101)
- +++ source/cWindow.h (working copy)
- @@ -17,6 +17,15 @@
- int GetWindowID() { return m_WindowID; }
- void SetWindowID( int a_WindowID ) { m_WindowID = a_WindowID; }
- +
- + static enum WindowType {
- + Chest,
- + Workbench,
- + Furnace,
- + Dispenser,
- + Enchantment,
- + Brewery
- + };
- int GetWindowType() { return m_WindowType; }
- void SetWindowType( int a_WindowType ) { m_WindowType = a_WindowType; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement