Fix most of the clipping (minor stuff with doors left)

This commit is contained in:
dginovker
2019-12-20 12:35:12 -05:00
parent 00500a072b
commit 13977992d7
8 changed files with 12 additions and 19 deletions
@@ -15,6 +15,7 @@ import com.rebotted.game.players.Client;
import com.rebotted.game.players.Player;
import com.rebotted.game.players.PlayerHandler;
import com.rebotted.util.Misc;
import com.rebotted.world.clip.Region;
/**
* @author Sanity
@@ -135,6 +136,7 @@ public class ObjectHandler {
* Creates the object for anyone who is within 60 squares of the object
**/
public void placeObject(Objects o) {
Region.addClipping(o.getObjectX(), o.getObjectY(), o.getObjectHeight(), 0);
for (Player p : PlayerHandler.players) {
if (p != null) {
Client person = (Client) p;