Oops, I broke portal material
This commit is contained in:
		
							
								
								
									
										2
									
								
								README
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								README
									
									
									
									
									
								
							@@ -215,6 +215,8 @@ Bukkit Issue: Stargate will randomly NPE when drawing a sign. Long-standing Bukk
 | 
				
			|||||||
=============
 | 
					=============
 | 
				
			||||||
  Changes
 | 
					  Changes
 | 
				
			||||||
=============
 | 
					=============
 | 
				
			||||||
 | 
					[Version 0.7.9.5]
 | 
				
			||||||
 | 
					 - Fixed an issue with portal material not showing up (Oh, that code WAS useful)
 | 
				
			||||||
[Version 0.7.9.4]
 | 
					[Version 0.7.9.4]
 | 
				
			||||||
 - Fixed an issue where water gates broke, oops
 | 
					 - Fixed an issue where water gates broke, oops
 | 
				
			||||||
[Version 0.7.9.3]
 | 
					[Version 0.7.9.3]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1102,6 +1102,16 @@ public class Stargate extends JavaPlugin {
 | 
				
			|||||||
			Stargate.sendMessage(player, Stargate.getString("destroyMsg"), false);
 | 
								Stargate.sendMessage(player, Stargate.getString("destroyMsg"), false);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							@EventHandler
 | 
				
			||||||
 | 
							public void onBlockPhysics(BlockPhysicsEvent event) {
 | 
				
			||||||
 | 
								// Only check for gates if it's a portal block
 | 
				
			||||||
 | 
								Block block = event.getBlock();
 | 
				
			||||||
 | 
								if (block.getTypeId() != 90) return;
 | 
				
			||||||
 | 
								
 | 
				
			||||||
 | 
								Portal portal = Portal.getByEntrance(block);
 | 
				
			||||||
 | 
								if (portal != null) event.setCancelled(true);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		@EventHandler
 | 
							@EventHandler
 | 
				
			||||||
		public void onBlockFromTo(BlockFromToEvent event) {
 | 
							public void onBlockFromTo(BlockFromToEvent event) {
 | 
				
			||||||
			Portal portal = Portal.getByEntrance(event.getBlock());
 | 
								Portal portal = Portal.getByEntrance(event.getBlock());
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
name: Stargate
 | 
					name: Stargate
 | 
				
			||||||
main: net.TheDgtl.Stargate.Stargate
 | 
					main: net.TheDgtl.Stargate.Stargate
 | 
				
			||||||
version: 0.7.9.4
 | 
					version: 0.7.9.5
 | 
				
			||||||
description: Stargate mod for Bukkit
 | 
					description: Stargate mod for Bukkit
 | 
				
			||||||
author: Drakia
 | 
					author: Drakia
 | 
				
			||||||
website: http://www.thedgtl.net
 | 
					website: http://www.thedgtl.net
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user