mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 05:33:00 +00:00 
			
		
		
		
	Merge pull request #14 from joecharamut/1.17.1
Fix drag-and-drop file uploading
This commit is contained in:
		| @@ -117,8 +117,6 @@ public abstract class ComputerScreenBase<T extends ContainerComputerBase> extend | ||||
|     @Override | ||||
|     public void filesDragged( @Nonnull List<Path> files ) | ||||
|     { | ||||
|         // TODO: this thing doesn't work in Tweaked at this moment | ||||
|         if ( true ) return; | ||||
|         if( files.isEmpty() ) return; | ||||
|  | ||||
|         if( computer == null || !computer.isOn() ) | ||||
|   | ||||
| @@ -213,6 +213,7 @@ public abstract class ContainerComputerBase extends ScreenHandler implements ICo | ||||
|             { | ||||
|                 try( FileSystemWrapper<WritableByteChannel> channel = fs.openForWrite( file.getName(), false, Function.identity() ) ) | ||||
|                 { | ||||
|                     file.getBytes().rewind(); | ||||
|                     channel.get().write( file.getBytes() ); | ||||
|                 } | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Merith
					Merith