Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Commit

Permalink
Envoyer l'information de pluie
Browse files Browse the repository at this point in the history
  • Loading branch information
robotia committed Mar 9, 2016
1 parent 42cef8d commit ca0e93e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions patches/net/minecraft/world/WorldServer.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -717,18 +717,22 @@
if (!p_72885_10_)
{
explosion.affectedBlockPositions.clear();
@@ -977,7 +1284,7 @@
@@ -977,7 +1284,8 @@
{
boolean flag = this.isRaining();
super.updateWeather();
-
+ /* CraftBukkit start
+
+ // Thermos send those gradual rain changes man!
if (this.prevRainingStrength != this.rainingStrength)
{
this.mcServer.getConfigurationManager().sendPacketToAllPlayersInDimension(new S2BPacketChangeGameState(7, this.rainingStrength), this.provider.dimensionId);
@@ -988,10 +1295,6 @@
@@ -987,11 +1295,9 @@
{
this.mcServer.getConfigurationManager().sendPacketToAllPlayersInDimension(new S2BPacketChangeGameState(8, this.thunderingStrength), this.provider.dimensionId);
}
+
+ /* CraftBukkit start

- /*The function in use here has been replaced in order to only send the weather info to players in the correct dimension,
- rather than to all players on the server. This is what causes the client-side rain, as the
Expand All @@ -737,7 +741,7 @@
if (flag != this.isRaining())
{
if (flag)
@@ -1006,6 +1309,33 @@
@@ -1006,6 +1312,33 @@
this.mcServer.getConfigurationManager().sendPacketToAllPlayersInDimension(new S2BPacketChangeGameState(7, this.rainingStrength), this.provider.dimensionId);
this.mcServer.getConfigurationManager().sendPacketToAllPlayersInDimension(new S2BPacketChangeGameState(8, this.thunderingStrength), this.provider.dimensionId);
}
Expand Down Expand Up @@ -771,7 +775,7 @@
}

protected int func_152379_p()
@@ -1069,4 +1399,53 @@
@@ -1069,4 +1402,53 @@
this();
}
}
Expand Down

5 comments on commit ca0e93e

@importnil
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hai @robotia !
Are there any news about items dupe/loss when teleporting? Hope to see dynamic view distance soon ^^

@sameer
Copy link
Member

@sameer sameer commented on ca0e93e Mar 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vadimyer what was the problem with this?

@importnil
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sameer
Copy link
Member

@sameer sameer commented on ca0e93e Mar 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that is fixed now 😄

@importnil
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Please sign in to comment.